3
0
Fork 0
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:
Eelco Dolstra 2007-01-10 17:08:34 +00:00
parent 99b24cf4d1
commit 5b993b4ff5

View file

@ -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\"