Lines 635-641
startVolumes() {
Link Here
|
635 |
|
635 |
|
636 |
if [ "${USE_LVM_NORMAL}" = '1' ] |
636 |
if [ "${USE_LVM_NORMAL}" = '1' ] |
637 |
then |
637 |
then |
638 |
if [ -e '/bin/lvm' ] |
638 |
if [ -e '/sbin/lvm' ] |
639 |
then |
639 |
then |
640 |
for dev in ${RAID_DEVICES} |
640 |
for dev in ${RAID_DEVICES} |
641 |
do |
641 |
do |
Lines 643-649
startVolumes() {
Link Here
|
643 |
done |
643 |
done |
644 |
|
644 |
|
645 |
# This is needed for /bin/lvm to accept the following logic |
645 |
# This is needed for /bin/lvm to accept the following logic |
646 |
lvm_commands="#! /bin/lvm" |
646 |
lvm_commands="#! /sbin/lvm" |
647 |
|
647 |
|
648 |
# If there is a cahe, update it. Unbreak at least dmcrypt |
648 |
# If there is a cahe, update it. Unbreak at least dmcrypt |
649 |
[ -d /etc/lvm/cache ] && lvm_commands="${lvm_commands} \nvgscan" |
649 |
[ -d /etc/lvm/cache ] && lvm_commands="${lvm_commands} \nvgscan" |
Lines 658-664
startVolumes() {
Link Here
|
658 |
|
658 |
|
659 |
# And finally execute it all (/proc/... needed if lvm is compiled without readline) |
659 |
# And finally execute it all (/proc/... needed if lvm is compiled without readline) |
660 |
good_msg "Scanning for and activating Volume Groups" |
660 |
good_msg "Scanning for and activating Volume Groups" |
661 |
printf "%b\n" "${lvm_commands}" | /bin/lvm /proc/self/fd/0 |
661 |
printf "%b\n" "${lvm_commands}" | /sbin/lvm /proc/self/fd/0 |
662 |
else |
662 |
else |
663 |
bad_msg "vgscan or vgchange not found: skipping LVM volume group activation!" |
663 |
bad_msg "vgscan or vgchange not found: skipping LVM volume group activation!" |
664 |
fi |
664 |
fi |