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

[rhel6-branch] On PPC use only the boot disk in yaboot.conf (#753108)



If we have more disks with prepboot partition, we don't
want them all in the yaboot.conf, just the one used in
our installation.
---
 booty/ppc.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/booty/ppc.py b/booty/ppc.py
index b8eeda7..6f62071 100644
--- a/booty/ppc.py
+++ b/booty/ppc.py
@@ -15,7 +15,8 @@ class ppcBootloaderInfo(bootloaderInfo):
 
         if machine == 'pSeries':
             for dev in self.storage.fsset.devices:
-                if dev.format.type == "prepboot":
+                if (dev.format.type == "prepboot" and
+                        dev.partedPartition.getFlag(parted.PARTITION_BOOT)):
                     retval.append(dev.path)
         elif machine == 'PMac':
             for dev in self.storage.fsset.devices:
-- 
1.7.5.4


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