[master/rhel7] Skip running efibootmgr for image and dir installations (#1067749)
Brian C. Lane
bcl at redhat.com
Fri Feb 21 00:46:19 UTC 2014
Since there is no target UEFI system, just an image, skip running
efibootmgr so that it doesn't remove the host's UEFI boot information.
Resolves: rhbz#1067749
---
pyanaconda/bootloader.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/pyanaconda/bootloader.py b/pyanaconda/bootloader.py
index d6b3034..e71e778 100644
--- a/pyanaconda/bootloader.py
+++ b/pyanaconda/bootloader.py
@@ -1640,6 +1640,10 @@ class EFIGRUB(GRUB2):
self.efi_dir = 'BOOT'
def efibootmgr(self, *args, **kwargs):
+ if flags.imageInstall or flags.dirInstall:
+ log.info("Skipping efibootmgr for image/directory install.")
+ return ""
+
if kwargs.pop("capture", False):
exec_func = iutil.execWithCapture
else:
--
1.8.5.3
More information about the anaconda-patches
mailing list