diff options
author | Matt Wilson <msw@redhat.com> | 2001-06-20 19:10:14 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2001-06-20 19:10:14 +0000 |
commit | cc707a5eb9f13b736af70de5c30dee67f4f84ad2 (patch) | |
tree | 58a4508015f48de0a45e76982705a258829ad74e /fsset.py | |
parent | 6194c55dc5ade1dafc1403e9290555fb5c288279 (diff) | |
download | anaconda-cc707a5eb9f13b736af70de5c30dee67f4f84ad2.tar.gz anaconda-cc707a5eb9f13b736af70de5c30dee67f4f84ad2.tar.xz anaconda-cc707a5eb9f13b736af70de5c30dee67f4f84ad2.zip |
add isSupported, which will tell the UI if they should display it as an option
Diffstat (limited to 'fsset.py')
-rw-r--r-- | fsset.py | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -135,6 +135,9 @@ class FileSystemType: self.readProcFilesystems() return FileSystemType.kernelFilesystems.has_key(self.getName()) + + def isSupported(self): + return self.isMountable() def isChecked(self): return self.checked @@ -223,6 +226,10 @@ class raidMemberDummyFileSystem(FileSystemType): self.linuxnativefs = 0 self.name = "software raid component" + def isSupported(self): + # XXX look at /proc/mdset ? + return 1 + def formatDevice(self, entry, progress, message, chroot='/'): # mkraid did all we need to format this partition... pass @@ -245,6 +252,9 @@ class swapFileSystem(FileSystemType): # unfortunately, turning off swap is bad. pass + def isSupported(self): + return 1 + def formatDevice(self, entry, progress, message, chroot='/'): file = entry.device.setupDevice(chroot) rc = iutil.execWithRedirect ("/usr/sbin/mkswap", |