summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2001-06-20 19:10:14 +0000
committerMatt Wilson <msw@redhat.com>2001-06-20 19:10:14 +0000
commitcc707a5eb9f13b736af70de5c30dee67f4f84ad2 (patch)
tree58a4508015f48de0a45e76982705a258829ad74e
parent6194c55dc5ade1dafc1403e9290555fb5c288279 (diff)
downloadanaconda-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
-rw-r--r--fsset.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/fsset.py b/fsset.py
index b278c83ee..fd32ff575 100644
--- a/fsset.py
+++ b/fsset.py
@@ -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",