X-Git-Url: http://gitweb/?a=blobdiff_plain;f=rc%2Frc.shutdown;h=63fbd431d51e2904c2012e2fbf417872e96bf14f;hb=66448b56d844b2ff0d64c60967f9d18672db2ee9;hp=4888a8e0872d0a955e3bd66a8ec85427a3168cc0;hpb=6dca1d213a39ee6af51632926e8b7c8914215cd9;p=crossrootfs.git diff --git a/rc/rc.shutdown b/rc/rc.shutdown index 4888a8e..63fbd43 100755 --- a/rc/rc.shutdown +++ b/rc/rc.shutdown @@ -43,10 +43,14 @@ fi /sbin/swapoff -a # Unmount file systems +/bin/umount -a -d -r -t nosysfs,noproc,nodevtmpfs +if [ -x /sbin/lvm ]; then + /sbin/vgchange --ignorelockingfailure -a n +fi /bin/umount -a -r # Remount root filesystem read-only -/bin/mount -n -o remount,ro / +/bin/mount -o remount,ro / # Power off or reboot if [ "$RUNLEVEL" = "0" ]; then