forked from mirrors/nixpkgs
* 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:
parent
99b24cf4d1
commit
5b993b4ff5
|
@ -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\"
|
||||
|
|
Loading…
Reference in a new issue