--- halt.orig 2004-03-04 17:28:34 +0300 +++ halt.orig 2005-04-14 09:34:09 +0400 @@ -126,6 +126,14 @@ action "Unmounting proc filesystem:" umount -n /proc +# Deactivate LVM groups +VGCHANGE=/sbin/vgchange +if [ -x "$VGCHANGE" -a -s /etc/lvmtab ]; then + action "Attempting to deactivate LVM" "$VGCHANGE" -an + message="The system is halted" + command=/sbin/poweroff +fi + # See if this is a powerfail situation. UPSCTL=/etc/apcupsd/apccontrol if [ -x "$UPSCTL" -a -f /etc/apcupsd/powerfail ]; then