summaryrefslogtreecommitdiffstats
path: root/pyanaconda/bootloader.py
diff options
context:
space:
mode:
authorMatthew Garrett <mjg@redhat.com>2012-05-01 16:10:24 -0400
committerBrian C. Lane <bcl@redhat.com>2012-05-01 14:19:00 -0700
commit37b7530804f980fdf9f805296f50c5a0fa341674 (patch)
treee31c45129261fda2946326e0b99b2597ed6c4c46 /pyanaconda/bootloader.py
parenta8464f82866a19f33443082d9a0710036cc0a6db (diff)
downloadanaconda-37b7530804f980fdf9f805296f50c5a0fa341674.tar.gz
anaconda-37b7530804f980fdf9f805296f50c5a0fa341674.tar.xz
anaconda-37b7530804f980fdf9f805296f50c5a0fa341674.zip
Configure Mac bootloader
mactel-boot-setup needs to be run after install in order to ensure that Mac-specific bootloader configuration occurs. Make sure this happens. Bug 816288.
Diffstat (limited to 'pyanaconda/bootloader.py')
-rw-r--r--pyanaconda/bootloader.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/pyanaconda/bootloader.py b/pyanaconda/bootloader.py
index a2ae43464..6ef384060 100644
--- a/pyanaconda/bootloader.py
+++ b/pyanaconda/bootloader.py
@@ -1575,6 +1575,19 @@ class EFIGRUB(GRUB):
self.install()
self.write_config()
+class MacEFIGRUB(EFIGRUB):
+ def mactel_config(self):
+ if os.path.exists(ROOT_PATH + "/usr/libexec/mactel-boot-setup"):
+ rc = iutil.execWithRedirect("/usr/libexec/mactel-boot-setup", [],
+ root=ROOT_PATH,
+ stdout="/dev/tty5", stderr="/dev/tty5")
+ if rc:
+ log.error("failed to configure Mac bootloader")
+
+ def install(self):
+ super(MacEFIGRUB, self).install()
+ self.mactel_config()
+
class GRUB2(GRUB):
""" GRUBv2