--- /tmp/halt.sh 2004-11-07 15:09:26.335336224 +0100 +++ /etc/init.d/halt.sh 2004-11-07 15:02:56.000000000 +0100 @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-src/rc-scripts/init.d/halt.sh,v 1.62 2004/10/28 19:18:38 azarah Exp $ +# $Header: /var/cvsroot/gentoo-src/rc-scripts/init.d/halt.sh,v 1.60 2004/10/26 02:01:11 vapier Exp $ # Check to see if this is a livecd, if it is read the commandline # this mainly makes sure $CDBOOT is defined if it's a livecd @@ -211,7 +211,12 @@ do # ${x} needs to be quoted to handle octal sequences such as # \040 (see bug 51351) - mount -n -o remount,ro "${x}" &>/dev/null + if [ "$force_remount" = "1" ]; then + ewarn " Forcing remount ${x}" + mount -f -n -o remount,ro "${x}" &>/dev/null + else + mount -n -o remount,ro "${x}" &>/dev/null + fi retval=$((${retval} + $?)) done @@ -233,6 +238,9 @@ sync; sync [ -f /etc/killpower ] && ups_kill_power /sbin/sulogin -t 10 /dev/console + force_remount="1" + mount_readonly + sleep 5 else eend 0 fi