Correctly unmount NFS and other "special" filesystems.
authorDaniel Hokka Zakrisson <daniel@hozac.com>
Tue, 8 Jul 2008 15:51:45 +0000 (15:51 +0000)
committerDaniel Hokka Zakrisson <daniel@hozac.com>
Tue, 8 Jul 2008 15:51:45 +0000 (15:51 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2730 94cd875c-1c1d-0410-91d2-eb244daf1a30

scripts/vserver.functions

index a11cd90..0d02105 100644 (file)
@@ -1352,7 +1352,7 @@ function _namespaceCleanup
     done < /proc/mounts
     # separate loop to avoid races while reading /proc/mounts
     for i in "${list_umount[@]}"; do
-       $_UMOUNT -l -n "$i"
+       $_UMOUNT -l -n -i "$i"
     done
 }