[PATCH] Fix the supported property of filesystems and prepboot format.

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

 



This will make the fstype combo contain only the filesystems it
should.
---
 storage/formats/fs.py       |    7 +++++--
 storage/formats/prepboot.py |    5 +++++
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/storage/formats/fs.py b/storage/formats/fs.py
index 8864b3a..474d828 100644
--- a/storage/formats/fs.py
+++ b/storage/formats/fs.py
@@ -588,6 +588,7 @@ class FS(DeviceFormat):
 
         return True
 
+    @property
     def supported(self):
         log_method_call(self, supported=self._supported)
         return self._supported and self.utilsAvailable
@@ -806,8 +807,10 @@ class EFIFS(FATFS):
     @property
     def supported(self):
         import platform
-        return (isinstance(platform.getPlatform(None), platform.EFI)
-                and self.utilsAvailable)
+        p = platform.getPlatform(None)
+        return (isinstance(p, platform.EFI) and
+                p.isEfi and
+                self.utilsAvailable)
 
 register_device_format(EFIFS)
 
diff --git a/storage/formats/prepboot.py b/storage/formats/prepboot.py
index fe0625f..2d851ed 100644
--- a/storage/formats/prepboot.py
+++ b/storage/formats/prepboot.py
@@ -51,6 +51,11 @@ class PPCPRePBoot(DeviceFormat):
     def status(self):
         return False
 
+    @property
+    def supported(self):
+        import platform
+        return isinstance(platform.getPlatform(None), platform.IPSeriesPPC)
+
 
 register_device_format(PPCPRePBoot)
 
-- 
1.6.0.6

_______________________________________________
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