From: Daniel Hokka Zakrisson Date: Thu, 28 Sep 2006 15:13:50 +0000 (+0000) Subject: Use a new namespace for the build process, so any mounts performed during the build... X-Git-Tag: release-0.30.211~19 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2fa9c5d3119c81c9d2effcb66c643e0196a65e47;p=util-vserver.git Use a new namespace for the build process, so any mounts performed during the build will vanish when it's done. git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2336 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/scripts/vserver b/scripts/vserver index 545206d..f169c44 100755 --- a/scripts/vserver +++ b/scripts/vserver @@ -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=