udev: update dmsetup path

Debian has it in /sbin/dmsetup. Fedora has /sbin->/usr/sbin symlink, so
it should work on both.
release2
Marek Marczykowski-Górecki 10 years ago
parent 91766f9b5d
commit 35300b54ac

@ -25,7 +25,7 @@ if [ -n "`ls -A /sys/$DEVPATH/holders 2> /dev/null`" ]; then
exit 0
fi
# ... and used device-mapper devices
if [ -n "$DM_NAME" ] && /usr/sbin/dmsetup info "$DM_NAME" | grep -q "^Open count:.*[1-9]"; then
if [ -n "$DM_NAME" ] && /sbin/dmsetup info "$DM_NAME" | grep -q "^Open count:.*[1-9]"; then
xs_remove
exit 0
fi

Loading…
Cancel
Save