-
Bug
-
Resolution: Unresolved
-
Normal
-
None
-
rhel-9.5
-
None
-
No
-
None
-
rhel-sst-installer
-
ssg_front_door
-
None
-
False
-
-
Yes
-
None
-
None
-
None
-
Unspecified Release Note Type - Unknown
-
-
x86_64
-
Linux
-
None
Description of problem:
Morgan Stanley would like to install systems but keep the boot order intact.
Currently this is not possible without a %post script changing the boot order back to previous order, because efibootmgr command is hardcoded in pyanaconda/modules/storage/bootloader/efi.py:
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------
64 def _add_single_efi_boot_target(self, partition):
65 boot_disk = partition.disk
66 boot_part_num = str(partition.parted_partition.number)
67
68 rc = self.efibootmgr(
69 "c", "-w", "-L", productName.split("")[0], # pylint: disable=no-member
70 "-d", boot_disk.path, "-p", boot_part_num,
71 "-l", self.efi_dir_as_efifs_dir + self._efi_binary, # pylint: disable=no-member
72 root=conf.target.system_root
73 )
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------
They propose a new option "inst.bootorder.last".
Note that KS "bootloader --leavebootorder" may be an option as well but currently it doesn't work for UEFI.
The idea behind this is they want to keep Network booting first.
Version-Release number of selected component (if applicable):
All
How reproducible:
N/A
Additional info:
It's possible using "efibootmgr -c ... -I -1" would achieve this but I didn't test if using "-1" is supported or not as boot order.