From 5b993b4ff5f956422c64a29d5595f197e31297aa Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 10 Jan 2007 17:08:34 +0000 Subject: [PATCH] * 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 --- upstart-jobs/halt.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upstart-jobs/halt.nix b/upstart-jobs/halt.nix index 719b01258ff..6c313ddf517 100644 --- a/upstart-jobs/halt.nix +++ b/upstart-jobs/halt.nix @@ -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\"