--- /etc/rc.shutdown.orig 2010-03-16 12:34:25.676720819 +0100 +++ /etc/rc.shutdown 2010-03-16 12:37:04.246783551 +0100 @@ -102,6 +106,12 @@ /bin/umount -a -r -t noramfs,notmpfs,nosysfs,noproc -O no_netdev stat_done +stat_busy "Remounting Root Filesystem Read-only" +/bin/mount -n -o remount,ro / +stat_done + +run_hook shutdown_unmounted + # Kill non-root encrypted partition mappings if [ -f /etc/crypttab -a -n "$(/bin/grep -v ^# /etc/crypttab | /bin/grep -v ^$)" ]; then stat_busy "Deactivating encrypted volumes:" @@ -133,10 +143,6 @@ fi fi -stat_busy "Remounting Root Filesystem Read-only" -/bin/mount -n -o remount,ro / -stat_done - run_hook shutdown_poweroff # Power off or reboot