fix intendation and add ignoremonitor to lvm2

This commit is contained in:
Tobias Powalowski 2010-05-13 23:00:32 +02:00
parent f3889f59c1
commit 27d5b5e3d4

View file

@ -12,20 +12,20 @@ run_hook ()
/bin/mknod "/dev/mapper/control" c $(cat /sys/class/misc/device-mapper/dev | sed 's|:| |')
fi
# If the lvmwait= parameter has been specified on the command line
# wait for the device(s) before trying to activate the volume group(s)
if [ -n "${lvmwait}" ]; then
for pvdev in $(echo ${lvmwait} | sed 's|,| |g'); do
poll_device ${pvdev} ${rootdelay}
done
fi
# If the lvmwait= parameter has been specified on the command line
# wait for the device(s) before trying to activate the volume group(s)
if [ -n "${lvmwait}" ]; then
for pvdev in $(echo ${lvmwait} | sed 's|,| |g'); do
poll_device ${pvdev} ${rootdelay}
done
fi
[ "${quiet}" = "y" ] && LVMQUIET=">/dev/null"
msg "Scanning logical volumes..."
eval /sbin/lvm vgscan --ignorelockingfailure $LVMQUIET
msg "Activating logical volumes..."
eval /sbin/lvm vgchange --ignorelockingfailure -ay $LVMQUIET
eval /sbin/lvm vgchange --ignorelockingfailure --ignoremonitoring -ay $LVMQUIET
fi
else
msg ":: Skipping already run by arch_root_advanced hook..."