aboutsummaryrefslogblamecommitdiff
path: root/pkgs/python-packages/blivet/fix_path.patch
blob: 29c4052c10b56c0598157909fd2e5f7d9ea9b945 (plain) (tree)




















                                                                                
diff --git a/blivet/tasks/fsmount.py b/blivet/tasks/fsmount.py
index 15f79a3e..bb3fe873 100644
--- a/blivet/tasks/fsmount.py
+++ b/blivet/tasks/fsmount.py
@@ -19,6 +19,7 @@
 #
 # Red Hat Author(s): Anne Mulhern <amulhern@redhat.com>
 
+from distutils.spawn import find_executable
 import os
 
 from ..errors import FSError
@@ -58,7 +59,7 @@ class FSMount(task.BasicApplication, fstask.FSTask):
     @property
     def _can_mount(self):
         return (self.mount_type in fslib.kernel_filesystems) or \
-            (os.access("/sbin/mount.%s" % (self.mount_type,), os.X_OK)) or \
+            (find_executable("mount.%s" % (self.mount_type,)) is not None) or \
             self._has_driver
 
     @property