mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Peter Jones <pjones@redhat.com>
To: dhowells@redhat.com
Cc: jwboyer@redhat.com, linux-kernel@vger.kernel.org,
	Peter Jones <pjones@redhat.com>
Subject: [PATCH] Use the UEFI shim to load grub.
Date: Wed,  8 Aug 2012 10:18:17 -0400	[thread overview]
Message-ID: <1344435497-6728-1-git-send-email-pjones@redhat.com> (raw)
In-Reply-To: <1344432179-31974-1-git-send-email-pjones@redhat.com>

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:
-- 
1.7.11.2


       reply	other threads:[~2012-08-08 14:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1344432179-31974-1-git-send-email-pjones@redhat.com>
2012-08-08 14:18 ` Peter Jones [this message]
2012-08-08 14:35   ` Peter Jones

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1344435497-6728-1-git-send-email-pjones@redhat.com \
    --to=pjones@redhat.com \
    --cc=dhowells@redhat.com \
    --cc=jwboyer@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®