We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
EFI/{vendor}/
1 parent bf828c2 commit 3991e6fCopy full SHA for 3991e6f
1 file changed
src/cmd-buildextend-live
@@ -524,6 +524,14 @@ def generate_iso():
524
if len(vendor_ids) != 1:
525
raise Exception(f"did not find exactly one EFI vendor ID: {vendor_ids}")
526
527
+ # Always replace live/EFI/{vendor} to actual live/EFI/{vendor_id[0]}
528
+ # https://github.com/openshift/os/issues/954
529
+ grubfilepath = ensure_glob(os.path.join(tmpdir, 'live/EFI/*/grub.cfg'))
530
+ if len(grubfilepath) != 1:
531
+ raise Exception(f'Found != 1 grub.cfg files: {grubfilepath}')
532
+ srcpath = os.path.dirname(grubfilepath[0])
533
+ os.renames(srcpath, os.path.join(os.path.dirname(srcpath), vendor_ids[0]))
534
+
535
# Delete fallback and its CSV file. Its purpose is to create
536
# EFI boot variables, which we don't want when booting from
537
# removable media.
0 commit comments