[PATCH] Fix supportable attribute for cmdline-enabled fstypes.

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

 



---
 storage/formats/fs.py |   16 +++++++++-------
 1 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/storage/formats/fs.py b/storage/formats/fs.py
index 063ca16..f467852 100644
--- a/storage/formats/fs.py
+++ b/storage/formats/fs.py
@@ -550,11 +550,9 @@ class FS(DeviceFormat):
     def migrationTarget(self):
         return self._migrationTarget
 
-    def supported(self):
+    @property
+    def utilsAvailable(self):
         # we aren't checking for fsck because we shouldn't need it
-        if not self._supported:
-            return False
-
         for prog in [self.mkfsProg, self.resizefsProg, self.labelfsProg]:
             if not prog:
                 continue
@@ -565,6 +563,10 @@ class FS(DeviceFormat):
 
         return True
 
+    def supported(self):
+        log_method_call(self, supported=self._supported)
+        return self._supported and self.utilsAvailable
+
     @property
     def mountable(self):
         return self.type in kernel_filesystems
@@ -810,7 +812,7 @@ class BTRFS(FS):
         """ Is this filesystem a supported type? """
         supported = self._supported
         if flags.cmdline.has_key("icantbelieveitsnotbtr"):
-            supported = FS.supported(self)
+            supported = self.utilsAvailable
 
         return supported
 
@@ -834,7 +836,7 @@ class GFS2(FS):
         """ Is this filesystem a supported type? """
         supported = self._supported
         if flags.cmdline.has_key("gfs2"):
-            supported = FS.supported(self)
+            supported = self.utilsAvailable
 
         return supported
 
@@ -861,7 +863,7 @@ class JFS(FS):
         """ Is this filesystem a supported type? """
         supported = self._supported
         if flags.cmdline.has_key("jfs"):
-            supported = FS.supported(self)
+            supported = self.utilsAvailable
 
         return supported
 
-- 
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