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

Re: [PATCH] Don't check if /boot is under the 4MB mark on i/p Series (#526200).



Hi,

Looks good,

Regards,

Hans


On 09/29/2009 03:40 PM, Chris Lumens wrote:
---
  platform.py |    7 ++++---
  1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/platform.py b/platform.py
index 37b3796..38a7185 100644
--- a/platform.py
+++ b/platform.py
@@ -330,12 +330,13 @@ class IPSeriesPPC(PPC):
          if not bootPart:
              return errors

-        if bootPart.geometry.end * bootPart.geometry.device.sectorSize / (1024.0 * 1024)>  4096:
-            errors.append(_("The boot partition must be within the first 4MB of the disk."))
-
          # All of the above just checks the PPC PReP boot partitions.  We still
          # need to make sure that whatever /boot is on also meets these criteria.
          if req == self.bootDevice():
+            # However, this check only applies to prepboot.
+            if bootPart.geometry.end * bootPart.geometry.device.sectorSize / (1024.0 * 1024)>  4096:
+                errors.append(_("The boot partition must be within the first 4MB of the disk."))
+
              try:
                  req = self.anaconda.id.storage.mountpoints["/boot"]
              except KeyError:


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