@ -632,17 +632,22 @@ startVolumes() {
if [ "${USE_LVM_NORMAL}" = '1' ]
if [ "${USE_LVM_NORMAL}" = '1' ]
then
then
if [ -e '/bin/vgscan' -a -e '/bin/vgchange ' ]
if [ -e '/bin/lvm ' ]
then
then
for dev in ${RAID_DEVICES}
for dev in ${RAID_DEVICES}
do
do
setup_md_device "${dev}"
setup_md_device "${dev}"
done
done
good_msg "Scanning for Volume Groups"
# This is needed for /bin/lvm to accept the following logic
/bin/vgscan --ignorelockingfailure --mknodes 2>/dev/null
lvm_commands="#! /bin/lvm"
good_msg "Activating Volume Groups"
# If there is a cahe, update it. Unbreak at least dmcrypt
/bin/vgchange -ay --sysinit 2>/dev/null
[ -d /etc/lvm/cache ] && lvm_commands="$lvm_commands \nvgscan"
# To activate volumegroups on all devices in the cache
lvm_commands="$lvm_commands \nvgchange -ay --sysinit"
# And finally execute it all (/proc/... needed if lvm is compiled without readline)
good_msg "Scanning for and activating Volume Groups"
printf "%b\n" "$lvm_commands" | /bin/lvm /proc/self/fd/0
# Disable EVMS since lvm is activated and they dont work together.
# Disable EVMS since lvm is activated and they dont work together.
if [ "${USE_EVMS_NORMAL}" = '1' ]
if [ "${USE_EVMS_NORMAL}" = '1' ]