* 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
|
for mp in $(getMountPoints); do
|
||||||
device=$(getDevice $mp)
|
device=$(getDevice $mp)
|
||||||
echo \"unmounting $mp...\"
|
echo \"unmounting $mp...\"
|
||||||
if umount -n -r \"$mp\"; then
|
if umount -n \"$mp\"; then
|
||||||
if test \"$mp\" != /; then tryAgain=1; fi
|
if test \"$mp\" != /; then tryAgain=1; fi
|
||||||
|
else
|
||||||
|
mount -n -o remount,ro \"$mp\"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Hack: work around a bug in mount (mount -o remount on a
|
# Hack: work around a bug in mount (mount -o remount on a
|
||||||
|
Loading…
x
Reference in New Issue
Block a user