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

[PATCH 3/5] Yaboot cannot find /boot if it is on a logical partition. (#725418)



---
 platform.py |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/platform.py b/platform.py
index 2291150..9904220 100644
--- a/platform.py
+++ b/platform.py
@@ -356,6 +356,16 @@ class PPC(Platform):
     def ppcMachine(self):
         return self._ppcMachine
 
+    def checkBootRequest(self, req):
+        errors = Platform.checkBootRequest(self, req)
+
+        if req == self.bootDevice():
+            # yaboot cannot find /boot on a logical partition
+            if hasattr(req, "partedPartition") and req.isLogical:
+                errors.append(_("The boot partition must be a primary partition."))
+
+        return errors
+
 class IPSeriesPPC(PPC):
     _minBootPartSize = 4
     _maxBootPartSize = 10
-- 
1.7.7.6


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