apt-rpm ... -- -d <distribution>
... installs the base-packages of the given distribution with
help of 'vapt-get'
+ yum ... -- -d <distribution>
+ ... installs the base-packages of the given distribution with
+ help of 'vyum'
skeleton ... -- [<cmd> <args>*]
... installs a minimal skeleton filesystem, creates the
configuration file and calls an optional command then
- debootstrap ... -- -d <distribution> [-m <mirror>]
+ debootstrap ... -- -d <distribution> [-m <mirror>] [-- <debootstrap-options>*]
bootstraps the vserver with Debian's 'debootstrap' package
Please report bugs to $PACKAGE_BUGREPORT"
set -e
declare -a default_opts=()
-test "$NO_DEFAULT_OPTS" || getFileArray default_opts "$CONFDIR/.defaults/apps/build/options" || :
+test -n "$NO_DEFAULT_OPTS" || getFileArray default_opts "$CONFDIR/.defaults/apps/build/options" || :
tmp=$(getopt -o +m:n: --long force,debug,help,version,rootdir:,pkgbase:,$SETUP_OPTIONS -n "$(basename $0)" -- \
"${default_opts[@]}" "$@") || exit 1
(--) shift; break;;
(*)
{ setup_setOption2 "$1" "$2" && shift; } || \
- { echo $"vserver-build: internal error."; exit 1; } >&2
+ panic $"vserver-build: internal error."
;;
esac
shift
done
-test "$VSERVER_NAME" || {
- echo $"Name of vserver not specified"
- exit 1
-} >&2
+test -n "$VSERVER_NAME" ||
+ panic $"Name of vserver not specified"
setup_setDefaults "$VSERVER_NAME"
case x"$method" in
(xlegacy) exec $_VSERVER_LEGACY "$VSERVER_NAME" build "$@" ;;
- (xapt-rpm|xcopy|xskeleton|xdebootstrap)
+ (xapt-rpm|xcopy|xskeleton|xdebootstrap|xyum)
. $PKGLIBDIR/vserver-build.$method
;;
- (x) echo $"No build-method specified" >&2
- exit 1
- ;;
- (*) echo $"Unknown build-method '$method'" >&2
- exit 1
- ;;
+ (x) panic $"No build-method specified";;
+ (*) panic $"Unknown build-method '$method'";;
esac