* Quick hack to prevent the system from hanging in halt/reboot: force
NFS unmounts. We have to do this because networking is already down by the time we get to the unmounting. It would be better to unmount all remote file systems when an ip-down event occurs. svn path=/nixos/trunk/; revision=7620
This commit is contained in:
@@ -47,7 +47,7 @@ script
|
||||
for mp in $(getMountPoints); do
|
||||
device=$(getDevice $mp)
|
||||
echo \"unmounting $mp...\"
|
||||
if umount -n \"$mp\"; then
|
||||
if umount -f -n \"$mp\"; then
|
||||
if test \"$mp\" != /; then tryAgain=1; fi
|
||||
else
|
||||
mount -n -o remount,ro \"$mp\"
|
||||
|
||||
Reference in New Issue
Block a user