[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH] Fix the supported property of filesystems and prepboot format.
- From: David Lehman <dlehman redhat com>
- To: anaconda-devel-list redhat com
- Cc:
- Subject: [PATCH] Fix the supported property of filesystems and prepboot format.
- Date: Fri, 27 Mar 2009 15:42:27 -0500
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
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]