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

[anaconda-storage-branch PATCH 6/6] Indicate filesystem is mountable if we have a mount command.



For NTFS, we don't have the name 'ntfs' in /proc/filesystems.  It
uses fuseblk.  Return True for mountable if the filesystem is
listed in /proc/filesystems -or- if we have a mount command for
that filesystem type.
---
 storage/formats/fs.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/storage/formats/fs.py b/storage/formats/fs.py
index a32c65b..71160bb 100644
--- a/storage/formats/fs.py
+++ b/storage/formats/fs.py
@@ -594,7 +594,8 @@ class FS(DeviceFormat):
 
     @property
     def mountable(self):
-        return self.type in kernel_filesystems
+        return (self.type in kernel_filesystems) or \
+               (os.access("/sbin/mount.%s" % (self.type,), os.X_OK))
 
     @property
     def defaultFormatOptions(self):
-- 
1.6.2


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