[PATCH] Make sure hfsutils is installed on PPC so mkofboot will work (#529035).

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

 



---
 platform.py   |   14 +++++++-------
 yuminstall.py |    2 +-
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/platform.py b/platform.py
index 8697090..74abdb7 100644
--- a/platform.py
+++ b/platform.py
@@ -39,10 +39,10 @@ class Platform(object):
        architecture quirks in one place to avoid lots of platform checks
        throughout anaconda."""
     _bootFSType = "ext3"
-    _bootloaderPackage = None
     _diskType = parted.diskType["msdos"]
     _isEfi = iutil.isEfi()
     _minimumSector = 0
+    _packages = []
     _supportsMdRaidBoot = False
     _minBootPartSize = 50
     _maxBootPartSize = 0
@@ -99,8 +99,8 @@ class Platform(object):
         return ret
 
     @property
-    def bootloaderPackage(self):
-        return self._bootloaderPackage
+    def packages(self):
+        return self._packages
 
     def checkBootRequest(self, req):
         """Perform an architecture-specific check on the boot device.  Not all
@@ -279,13 +279,13 @@ class Alpha(Platform):
         return errors
 
 class IA64(EFI):
-    _bootloaderPackage = "elilo"
+    _packages = ["elilo"]
 
     def __init__(self, anaconda):
         EFI.__init__(self, anaconda)
 
 class PPC(Platform):
-    _bootloaderPackage = "yaboot"
+    _packages = ["hfsutils", "yaboot"]
     _bootFSType = "ext4"
     _ppcMachine = iutil.getPPCMachine()
     _supportsMdRaidBoot = True
@@ -440,7 +440,7 @@ class PS3(PPC):
         PPC.__init__(self, anaconda)
 
 class S390(Platform):
-    _bootloaderPackage = "s390utils"
+    _packages = ["s390utils"]
 
     def __init__(self, anaconda):
         Platform.__init__(self, anaconda)
@@ -456,7 +456,7 @@ class Sparc(Platform):
         return start+1
 
 class X86(EFI):
-    _bootloaderPackage = "grub"
+    _packages = ["grub"]
     _bootFSType = "ext4"
     _supportsMdRaidBoot = True
 
diff --git a/yuminstall.py b/yuminstall.py
index cb30642..4043b31 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -1354,7 +1354,7 @@ reposdir=/etc/anaconda.repos.d,/tmp/updates/anaconda.repos.d,/tmp/product/anacon
         if not anaconda.id.getUpgrade():
             # New installs only - upgrades will already have all this stuff.
             self.selectBestKernel(anaconda)
-            self.selectPackage(anaconda.platform.bootloaderPackage)
+            map(self.selectPackage, anaconda.platform.packages)
             self.selectFSPackages(anaconda.id.storage)
             self.selectAnacondaNeeds()
         else:
-- 
1.6.5.rc2

_______________________________________________
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