1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

blkdeactive: use /sbin for mdamd

Do not using lvm's  @SBINDIR@ for mdadm path.
Set this directly to  /sbin/mdadm like other tools.

Group them separately
This commit is contained in:
Zdenek Kabelac 2017-11-03 17:06:16 +01:00
parent 2354fb3fe4
commit 0f0baec1f3

View File

@ -31,17 +31,17 @@ shopt -s dotglob nullglob
TOOL=blkdeactivate
sbindir="@SBINDIR@"
DEV_DIR="/dev"
SYS_BLK_DIR="/sys/block"
MDADM="/sbin/mdadm"
MOUNTPOINT="/bin/mountpoint"
MPATHD="/sbin/multipathd"
UMOUNT="/bin/umount"
sbindir="@SBINDIR@"
DMSETUP="$sbindir/dmsetup"
LVM="$sbindir/lvm"
MDADM="$sbindir/mdadm"
MPATHD="/sbin/multipathd"
if "$UMOUNT" --help | grep -- "--all-targets" >"$DEV_DIR/null"; then
UMOUNT_OPTS="--all-targets "