Use a new namespace for the build process, so any mounts performed during the build...
authorDaniel Hokka Zakrisson <daniel@hozac.com>
Thu, 28 Sep 2006 15:13:50 +0000 (15:13 +0000)
committerDaniel Hokka Zakrisson <daniel@hozac.com>
Thu, 28 Sep 2006 15:13:50 +0000 (15:13 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2336 94cd875c-1c1d-0410-91d2-eb244daf1a30

scripts/vserver

index 545206d..f169c44 100755 (executable)
@@ -153,7 +153,7 @@ SELF=( "$0" "${OPTION_ALL[@]}" )
 vserver=$1
 cmd=$2
 
-test "$cmd" != build || { shift 2; exec "$_VSERVER_BUILD" -n "$vserver" "$@"; }
+test "$cmd" != build || { shift 2; exec $_VNAMESPACE --new -- "$_VSERVER_BUILD" -n "$vserver" "$@"; }
 
 
 allow_legacy=