Options:
--force ... remove/rename already existing vservers with the same
name
+ --i-know-its-there
+ ... allow to finish build even if it exists
--keep ... do not delete generated files and directories when
build of vserver failed.
-m <method> ... use method <method>; see below for possible values
apt-rpm ... -- -d <distribution>
... installs the base-packages of the given distribution with
help of 'vapt-get'
- yum ... -- -d <distribution>
+ yum ... -- -d <distribution> [-- <packages>*]
... installs the base-packages of the given distribution with
help of 'vyum'
+ urpmi ... -- -d <distribution> -m <mirror>
rpm ... -- [-d <distribution>] --empty|([--force] [--nodeps] <manifest>)+
... installs lists of rpm-packages
skeleton ... -- [<cmd> <args>*]
-n <nfsroot> specifies the 'NFS' root explicitly
-d <fai_dir> specifies the location of the FAI profile
the -f option implies -n and -d are relative to the <fai_vserver>
- rsync ... -- [-d <distribution>] --source <source> [-o <rsync option>]*
+ rsync ... -- [-d <distribution>] --source <source> [-- <rsync options>*]
... installs a guest by rsyncing from <source> to the guest root
+ clone ... -- [-d <distribution>] --source <source> [--exclude-from <exclude-list>]
+ ... clones a guest by linking unified files and copying the rest
Please report bugs to $PACKAGE_BUGREPORT"
exit 0
declare -a default_opts=()
test -n "$NO_DEFAULT_OPTS" || getFileArray default_opts "$__CONFDIR/.defaults/apps/build/options" || :
-tmp=$(getopt -o +m:n: --long keep,force,debug,help,version,rootdir:,pkgbase:,$SETUP_OPTIONS -n "$(basename $0)" -- \
+tmp=$(getopt -o +m:n: --long keep,force,i-know-its-there,debug,help,version,rootdir:,pkgbase:,$SETUP_OPTIONS -n "$(basename $0)" -- \
"${default_opts[@]}" "$@") || exit 1
eval set -- "$tmp"
OPTION_FORCE=
OPTION_DEBUG=0
OPTION_KEEP=
+OPTION_SEMIFORCE=
while true; do
case "$1" in
(--debug) let ++OPTION_DEBUG; set -x;;
(--rootdir) ROOTDIR=$2; shift;;
(--pkgbase) PKGCFGBASE=$2; shift;;
+ (--i-know-its-there)
+ OPTION_SEMIFORCE=1;;
(-m) method=$2; shift;;
(-n) VSERVER_NAME=$2; shift;;
(--) shift; break;;
case x"$method" in
(xlegacy) exec $_VSERVER_LEGACY "$VSERVER_NAME" build "$@" ;;
- (xapt-rpm|xcopy|xskeleton|xdebootstrap|xyum|xrpm|xtemplate|xfai|xrsync)
+ (xapt-rpm|xcopy|xskeleton|xdebootstrap|xyum|xrpm|xtemplate|xfai|xrsync|xclone|xurpmi)
. $__PKGLIBDIR/vserver-build.$method
;;
(x) panic $"No build-method specified";;