]> git.immae.eu Git - perso/Immae/Config/Nix.git/blobdiff - pkgs/python-packages/blivet/fix_path.patch
Add blivet3 repackaging (work in progress)
[perso/Immae/Config/Nix.git] / pkgs / python-packages / blivet / fix_path.patch
diff --git a/pkgs/python-packages/blivet/fix_path.patch b/pkgs/python-packages/blivet/fix_path.patch
new file mode 100644 (file)
index 0000000..29c4052
--- /dev/null
@@ -0,0 +1,21 @@
+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