From 61414f240335798c2257635145754ef3a0560da8 Mon Sep 17 00:00:00 2001 From: Daniel Hokka Zakrisson Date: Thu, 16 Aug 2007 19:36:27 +0000 Subject: [PATCH] Fix for vtag invocations. git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2590 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- scripts/chcontext | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/chcontext b/scripts/chcontext index 2caa42c..39087c2 100755 --- a/scripts/chcontext +++ b/scripts/chcontext @@ -158,9 +158,7 @@ chain_cmd=( "${chain_cmd[@]}" ${OPT_CAPS:+--bcap "${OPT_CAPS[*]}"} ${OPT_FLAGS:+--flag "${OPT_FLAGS[*]}"} ) -migrate_cmd=( $_VTAG --migrate --tag "$OPT_CTX" - -- - $_VCONTEXT +migrate_cmd=( $_VCONTEXT ${OPT_SILENT:+--silent} ${OPT_DISCONNECT:+--disconnect} $OPT_INITPID ) @@ -175,5 +173,6 @@ else rc=254 fi -test "$rc" -ne 254 || exec "${migrate_cmd[@]}" --xid "$OPT_CTX" --migrate -- "$@" +test "$rc" -ne 254 || exec "$_VTAG" --migrate --tag "$OPT_CTX" -- \ + "${migrate_cmd[@]}" --xid "$OPT_CTX" --migrate -- "$@" exit $rc -- 1.8.1.5