diff options
Diffstat (limited to 'pkgs/python-packages/blivet/fix_path.patch')
-rw-r--r-- | pkgs/python-packages/blivet/fix_path.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/pkgs/python-packages/blivet/fix_path.patch b/pkgs/python-packages/blivet/fix_path.patch new file mode 100644 index 0000000..29c4052 --- /dev/null +++ b/pkgs/python-packages/blivet/fix_path.patch | |||
@@ -0,0 +1,21 @@ | |||
1 | diff --git a/blivet/tasks/fsmount.py b/blivet/tasks/fsmount.py | ||
2 | index 15f79a3e..bb3fe873 100644 | ||
3 | --- a/blivet/tasks/fsmount.py | ||
4 | +++ b/blivet/tasks/fsmount.py | ||
5 | @@ -19,6 +19,7 @@ | ||
6 | # | ||
7 | # Red Hat Author(s): Anne Mulhern <amulhern@redhat.com> | ||
8 | |||
9 | +from distutils.spawn import find_executable | ||
10 | import os | ||
11 | |||
12 | from ..errors import FSError | ||
13 | @@ -58,7 +59,7 @@ class FSMount(task.BasicApplication, fstask.FSTask): | ||
14 | @property | ||
15 | def _can_mount(self): | ||
16 | return (self.mount_type in fslib.kernel_filesystems) or \ | ||
17 | - (os.access("/sbin/mount.%s" % (self.mount_type,), os.X_OK)) or \ | ||
18 | + (find_executable("mount.%s" % (self.mount_type,)) is not None) or \ | ||
19 | self._has_driver | ||
20 | |||
21 | @property | ||