Lines 625-631
Link Here
|
625 |
|
625 |
|
626 |
if [ "${USE_LVM_NORMAL}" = '1' ] |
626 |
if [ "${USE_LVM_NORMAL}" = '1' ] |
627 |
then |
627 |
then |
628 |
if [ -e '/bin/lvm' ] |
628 |
if [ -e '/sbin/lvm' ] |
629 |
then |
629 |
then |
630 |
for dev in ${RAID_DEVICES} |
630 |
for dev in ${RAID_DEVICES} |
631 |
do |
631 |
do |
Lines 633-639
Link Here
|
633 |
done |
633 |
done |
634 |
|
634 |
|
635 |
# This is needed for /bin/lvm to accept the following logic |
635 |
# This is needed for /bin/lvm to accept the following logic |
636 |
lvm_commands="#! /bin/lvm" |
636 |
lvm_commands="#! /sbin/lvm" |
637 |
|
637 |
|
638 |
# If there is a cahe, update it. Unbreak at least dmcrypt |
638 |
# If there is a cahe, update it. Unbreak at least dmcrypt |
639 |
[ -d /etc/lvm/cache ] && lvm_commands="${lvm_commands} \nvgscan" |
639 |
[ -d /etc/lvm/cache ] && lvm_commands="${lvm_commands} \nvgscan" |
Lines 648-654
Link Here
|
648 |
|
648 |
|
649 |
# And finally execute it all (/proc/... needed if lvm is compiled without readline) |
649 |
# And finally execute it all (/proc/... needed if lvm is compiled without readline) |
650 |
good_msg "Scanning for and activating Volume Groups" |
650 |
good_msg "Scanning for and activating Volume Groups" |
651 |
printf "%b\n" "${lvm_commands}" | /bin/lvm /proc/self/fd/0 |
651 |
printf "%b\n" "${lvm_commands}" | /sbin/lvm /proc/self/fd/0 |
652 |
else |
652 |
else |
653 |
bad_msg "vgscan or vgchange not found: skipping LVM volume group activation!" |
653 |
bad_msg "vgscan or vgchange not found: skipping LVM volume group activation!" |
654 |
fi |
654 |
fi |