X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=util-vserver%2Fscripts%2Fvserver-build;h=c2e30e38775aba47059ceee7b6e822587ce4a7f1;hb=1a164f15f34c052a9deaa2f967e57d516286179e;hp=a177e63f0d87100c3c40e4c7b58240fc8d53cb1c;hpb=9aa4164f68b34f283ff8878de3d6a5b9ea4faea6;p=util-vserver.git diff --git a/util-vserver/scripts/vserver-build b/util-vserver/scripts/vserver-build index a177e63..c2e30e3 100755 --- a/util-vserver/scripts/vserver-build +++ b/util-vserver/scripts/vserver-build @@ -18,7 +18,7 @@ : ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars} test -e "$UTIL_VSERVER_VARS" || { - echo "Can not find util-vserver installation; aborting..." + echo "Can not find util-vserver installation; aborting..." >&2 exit 1 } . "$UTIL_VSERVER_VARS" @@ -50,9 +50,14 @@ Possible methods are: cfg-options will be ignored copy ... the copy-all-from-host method which uses the recent configuration scheme - apt-rpm -d + apt-rpm ... -- -d ... installs the base-packages of the given distribution with help of 'vapt-get' + skeleton ... -- [ *] + ... installs a minimal skeleton filesystem, creates the + configuration file and calls an optional command then + debootstrap ... -- -d [-m ] + bootstraps the vserver with Debian's 'debootstrap' package Please report bugs to $PACKAGE_BUGREPORT" exit 0 @@ -97,7 +102,7 @@ while true; do --) shift; break;; *) { setup_setOption2 "$1" "$2" && shift; } || \ - { echo $"vserver-build: internal error."; exit 1; } + { echo $"vserver-build: internal error."; exit 1; } >&2 ;; esac shift @@ -106,13 +111,13 @@ done test "$VSERVER_NAME" || { echo $"Name of vserver not specified" exit 1 -} +} >&2 setup_setDefaults "$VSERVER_NAME" case x"$method" in xlegacy) exec $_VSERVER_LEGACY "$VSERVER_NAME" build "$@" ;; - xapt-rpm|xcopy) + xapt-rpm|xcopy|xskeleton|xdebootstrap) . $PKGLIBDIR/vserver-build.$method ;; x) echo $"No build-method specified" >&2