* Don't get stuck in an infinite unmount loop on shutdown.

svn path=/nixos/trunk/; revision=7580
This commit is contained in:
Eelco Dolstra 2007-01-09 09:52:16 +00:00
parent c4df455e81
commit 2d20b19e5b

View File

@ -47,8 +47,10 @@ script
for mp in $(getMountPoints); do
device=$(getDevice $mp)
echo \"unmounting $mp...\"
if umount -n -r \"$mp\"; then
if umount -n \"$mp\"; then
if test \"$mp\" != /; then tryAgain=1; fi
else
mount -n -o remount,ro \"$mp\"
fi
# Hack: work around a bug in mount (mount -o remount on a