* Don't get stuck in an infinite unmount loop on shutdown.
svn path=/nixos/trunk/; revision=7580
This commit is contained in:
parent
c4df455e81
commit
2d20b19e5b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user