diff options
author | David Lehman <dlehman@redhat.com> | 2009-03-27 15:26:04 -0500 |
---|---|---|
committer | David Lehman <dlehman@redhat.com> | 2009-03-30 21:22:44 -0500 |
commit | 06548dddf49624366a970538944af0a3dcc5a9be (patch) | |
tree | 7317e2b0c71c2e54fe7c1d5c561d324a5a68882a /storage/formats/fs.py | |
parent | 935d6d62a520b1d69bfd1613b9b3e7e452a2eb8b (diff) | |
download | anaconda-06548dddf49624366a970538944af0a3dcc5a9be.tar.gz anaconda-06548dddf49624366a970538944af0a3dcc5a9be.tar.xz anaconda-06548dddf49624366a970538944af0a3dcc5a9be.zip |
Fix the supported property of filesystems and prepboot format.
This will make the fstype combo contain only the filesystems it
should.
Diffstat (limited to 'storage/formats/fs.py')
-rw-r--r-- | storage/formats/fs.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/storage/formats/fs.py b/storage/formats/fs.py index 8864b3aab..474d8287e 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) |