-# $Id:$ --*- sh -*--
+# $Id$ --*- sh -*--
# Copyright (C) 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
#
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-tmp=$(getopt -o '+d:t:' --long debug,pkgmgmt,template: -n "vserver-build.template" -- "$@") || exit 1
+tmp=$(getopt -o '+d:t:' --long debug,pkgmgmt,template:,nodevsanity -n "vserver-build.template" -- "$@") || exit 1
eval set -- "$tmp"
. "$_LIB_VSERVER_BUILD_FUNCTIONS_PKGMGMT"
DISTRIBUTION=:
use_pkgmgmt=
+no_dev_sanity=
declare -a TEMPLATE=()
while true; do
case "$1" in
-d) DISTRIBUTION=$2; shift;;
--debug) set -x;;
--pkgmgmt) use_pkgmgmt=1;;
+ --nodevsanity) no_dev_sanity=1;;
-t|--template)
case "$2" in
/*) f="$2";;
$DECOMPRESS "$t" | $EXTRACT
done
+
+test -z "$no_dev_sanity" && {
+ rm -rf dev/*
+ populateDev
+}
popd &> /dev/null
test -z "$BUILD_INITPOST" || "$BUILD_INITPOST" "$SETUP_CONFDIR" "$UTIL_VSERVER_VARS"