[PATCH 2/4] Check that /boot is on a Mac disk label for PPC installs (#497745).

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

 



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

diff --git a/platform.py b/platform.py
index bf6773c..db819f7 100644
--- a/platform.py
+++ b/platform.py
@@ -337,6 +337,17 @@ class NewWorldPPC(PPC):
 
         return ret
 
+    def checkBootRequest(self, req):
+        disk = req.disk
+        if not disk:
+            raise DeviceError("Boot partition has no disk")
+
+        disk = disk.partedDisk
+
+        # Check that we're a Mac disk label
+        if not disk.type == self.diskType:
+            raise DeviceError("Disk label is not %s" % self.diskType.name)
+
     def setDefaultPartitioning(self):
         ret = Platform.setDefaultPartitioning(self)
         ret.append(PartSpec(fstype="Apple Bootstrap", size=1, maxSize=1,
-- 
1.6.1.3

_______________________________________________
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