summaryrefslogtreecommitdiff
path: root/udev-md-raid-arrays.rules
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2014-05-22 17:13:02 +1000
committerNeilBrown <neilb@suse.de>2014-05-22 17:13:02 +1000
commit85945e1986837e1e34247a03c99039593fbceb8b (patch)
tree453d176c911ae229c7dc81b9cbc414187f3b54ee /udev-md-raid-arrays.rules
parentdf881f757b3d61e5dfc1a2b23436ab1cf5247157 (diff)
downloadmdadm-85945e1986837e1e34247a03c99039593fbceb8b.tar.gz
install: use BINDIR consistently to locate mdadm and mdmon
Every place where the paths for mdadm or mdmon is explicit, it should use the BINDIR setting, not "/sbin/". Reported-by: member graysky <graysky@archlinux.us> (https://bugs.archlinux.org/task/37330) Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'udev-md-raid-arrays.rules')
-rw-r--r--udev-md-raid-arrays.rules2
1 files changed, 1 insertions, 1 deletions
diff --git a/udev-md-raid-arrays.rules b/udev-md-raid-arrays.rules
index 92aec36..c95ec7b 100644
--- a/udev-md-raid-arrays.rules
+++ b/udev-md-raid-arrays.rules
@@ -17,7 +17,7 @@ TEST!="md/array_state", ENV{SYSTEMD_READY}="0", GOTO="md_end"
ATTR{md/array_state}=="|clear|inactive", ENV{SYSTEMD_READY}="0", GOTO="md_end"
LABEL="md_ignore_state"
-IMPORT{program}="/sbin/mdadm --detail --export $devnode"
+IMPORT{program}="BINDIR/mdadm --detail --export $devnode"
ENV{DEVTYPE}=="disk", ENV{MD_NAME}=="?*", SYMLINK+="disk/by-id/md-name-$env{MD_NAME}", OPTIONS+="string_escape=replace"
ENV{DEVTYPE}=="disk", ENV{MD_UUID}=="?*", SYMLINK+="disk/by-id/md-uuid-$env{MD_UUID}"
ENV{DEVTYPE}=="disk", ENV{MD_DEVNAME}=="?*", SYMLINK+="md/$env{MD_DEVNAME}"