[PATCH f16-branch] Write the grub.conf after setting up the new EFI bootloader (#741994))

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "Brian C. Lane" <bcl@xxxxxxxxxx>

On EFI the grub.conf includes a device mapping line that ensures that
hd(x,y) points to the right device. This information is pulled from
efibootmgr -v, so the new entry needs to be made before writing
grub.conf on EFI, not after.

NOTE: Tested and confirmed via program.log and efibootmgr -v after install
---
 pyanaconda/bootloader.py |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/pyanaconda/bootloader.py b/pyanaconda/bootloader.py
index e6ce014..efbf115 100644
--- a/pyanaconda/bootloader.py
+++ b/pyanaconda/bootloader.py
@@ -1431,6 +1431,20 @@ class EFIGRUB(GRUB):
     def update(self, install_root=""):
         self.write(install_root=install_root)
 
+    #
+    # installation
+    #
+    def write(self, install_root=""):
+        """ Write the bootloader configuration and install the bootloader. """
+        if self.update_only:
+            self.update(install_root=install_root)
+            return
+
+        sync()
+        self.stage2_device.format.sync(root=install_root)
+        self.install(install_root=install_root)
+        self.write_config(install_root=install_root)
+
 class GRUB2(GRUB):
     """ GRUBv2
 
-- 
1.7.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux