Skip to contentSkip to conversation

Use the UEFI shim to load grub.

PATCH In review Peter Jones 1 participant 2 messages Aug 8, 2012 1 message not in the archive

lore
Share & tools
lore
#1 lore raw

PATCH 1/1 Use the UEFI shim to load grub.

In reply to a message not in the archive

For UEFI Secure Boot support, we need to install the shim pre-boot loader, and use it to load grub2.

---
 pyanaconda/bootloader.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
pyanaconda/bootloader.py +2 -2
index ea4de5e..02d0ea8 100644
@@ -1749,7 +1749,7 @@ class GRUB2(GRUB):
         self.stage2_device.format.sync(root=ROOT_PATH)
 
 class EFIGRUB(GRUB2):
-    packages = ["grub2-efi", "efibootmgr"]
+    packages = ["grub2-efi", "efibootmgr", "shim"]
     can_dual_boot = False
 
     @property
@@ -1809,7 +1809,7 @@ class EFIGRUB(GRUB2):
         rc = self.efibootmgr("-c", "-w", "-L", productName,
                              "-d", boot_disk.path, "-p", boot_part_num,
                              "-l",
-                             self.efi_dir_as_efifs_dir + "\\grubx64.efi",
+                             self.efi_dir_as_efifs_dir + "\\shim.efi",
                              root=ROOT_PATH,
                              stdout="/dev/tty5", stderr="/dev/tty5")
         if rc:
Signature · 1 line
1.7.11.2
#2 lore raw

Obviously, this went to the wrong list of addresses. Sorry for all the noise.

Quoted 28 lines · Peter Jones

For UEFI Secure Boot support, we need to install the shim pre-boot loader, and use it to load grub2.

---
 pyanaconda/bootloader.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
pyanaconda/bootloader.py +2 -2
index ea4de5e..02d0ea8 100644
@@ -1749,7 +1749,7 @@ class GRUB2(GRUB):
         self.stage2_device.format.sync(root=ROOT_PATH)
 
 class EFIGRUB(GRUB2):
-    packages = ["grub2-efi", "efibootmgr"]
+    packages = ["grub2-efi", "efibootmgr", "shim"]
     can_dual_boot = False
 
     @property
@@ -1809,7 +1809,7 @@ class EFIGRUB(GRUB2):
         rc = self.efibootmgr("-c", "-w", "-L", productName,
                              "-d", boot_disk.path, "-p", boot_part_num,
                              "-l",
-                             self.efi_dir_as_efifs_dir + "\\grubx64.efi",
+                             self.efi_dir_as_efifs_dir + "\\shim.efi",
                              root=ROOT_PATH,
                              stdout="/dev/tty5", stderr="/dev/tty5")
         if rc:
Signature · 1 line
  Peter