added yum-2.6.0-chroot.patch
[util-vserver.git] / util-vserver / scripts / chcontext
index 3ca4aa2..9fa67cd 100755 (executable)
@@ -164,7 +164,7 @@ migrate_cmd=( $_VCONTEXT
 
 IFS=$old_IFS
 
-if $_VSERVER_INFO -q "$OPT_CTX" XIDTYPE static; then
+if test -z "$OPT_CTX" || $_VSERVER_INFO -q "$OPT_CTX" XIDTYPE static; then
     "${create_cmd[@]}" "${chain_cmd[@]}" -- \
        "${migrate_cmd[@]}" --endsetup --migrate-self -- "$@"
     rc=$?