[PATCH] Use the UEFI shim to load grub.

Brian C. Lane bcl at redhat.com
Wed Aug 8 21:53:53 UTC 2012


On Wed, Aug 08, 2012 at 10:36:16AM -0400, Peter Jones wrote:
> 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(-)
> 
> diff --git a/pyanaconda/bootloader.py b/pyanaconda/bootloader.py
> index ea4de5e..02d0ea8 100644
> --- a/pyanaconda/bootloader.py
> +++ b/pyanaconda/bootloader.py
> @@ -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:

Ack, as soon as shim is available in the repo.

-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 482 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/anaconda-patches/attachments/20120808/8844f4d3/attachment.sig>


More information about the anaconda-patches mailing list