diff options
author | madduck <madduck@3cfab66f-1918-0410-86b3-c06b76f9a464> | 2006-12-19 08:18:50 +0000 |
---|---|---|
committer | madduck <madduck@3cfab66f-1918-0410-86b3-c06b76f9a464> | 2006-12-19 08:18:50 +0000 |
commit | b82ce0c6d88d02eae029a2bfb17922cac9a43a2c (patch) | |
tree | fdd959fdaff3d40d9878e1104f9b1a6523945694 /debian/mdadm.preinst | |
parent | 06402eb87cdff4a5644375de962795482be86968 (diff) |
* Hard-code path to /sbin/mdadm binary rather than searching the $PATH. This
closes: #403307 and should be a little more robust in the presence of
installations of mdadm in /usr/local.
Diffstat (limited to 'debian/mdadm.preinst')
-rw-r--r-- | debian/mdadm.preinst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/mdadm.preinst b/debian/mdadm.preinst index 86182270..c5db6d30 100644 --- a/debian/mdadm.preinst +++ b/debian/mdadm.preinst @@ -19,7 +19,7 @@ case "$1" in fi # save the v1 output of -Es just in case we need it for upgrades - MDADM="$(command -v mdadm 2>/dev/null || :)" + MDADM=/sbin/mdadm if [ -x "$MDADM" ] && [ -n "${2:-}" ] && \ dpkg --compare-versions $2 lt 2; then echo DEVICE partitions > /var/backups/mdadm-Es_v1.dump |