X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=util-vserver%2Fscripts%2Fvserver-build;h=463294f94d382880ee5fae44d0923b4d08f70493;hb=4fc0d7c31dd9fb6bae2e77ba37d8a08ab26dd65c;hp=83aee845b6b1372c3fcd015bbd3a55f2300733bf;hpb=b8efbdf6648075efe67c8d34e6cb7e7380de596e;p=util-vserver.git diff --git a/util-vserver/scripts/vserver-build b/util-vserver/scripts/vserver-build index 83aee84..463294f 100755 --- a/util-vserver/scripts/vserver-build +++ b/util-vserver/scripts/vserver-build @@ -16,7 +16,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -: ${UTIL_VSERVER_VARS:=$(dirname $0)/util-vserver-vars} +: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars} test -e "$UTIL_VSERVER_VARS" || { echo "Can not find util-vserver installation; aborting..." exit 1 @@ -38,9 +38,9 @@ Options: --force ... remove/rename already existing vservers with the same name -m ... use method ; see below for possible values --rootdir - ... [default: /vservers] + ... [default: $DEFAULT_VSERVERDIR] --pkgcfgbase - ... [default: /.pkg] + ... [default: $DEFAULT_VSERVERPKGDIR] cfg-options are: $SETUP_HELPMSG @@ -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 @@ -112,7 +117,7 @@ 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