]> git.immae.eu Git - perso/Immae/Config/Nix.git/blame - pkgs/python-packages/blivet/fix_path.patch
Fix zrepl configuration to ease load on eldiron
[perso/Immae/Config/Nix.git] / pkgs / python-packages / blivet / fix_path.patch
CommitLineData
6b6db4e2
IB
1diff --git a/blivet/tasks/fsmount.py b/blivet/tasks/fsmount.py
2index 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