fixed VLAN setup: set the name-type, honor the 'ip' value and use the
[util-vserver.git] / util-vserver / scripts / vserver-build.debootstrap
index eb77fa1..a58c27c 100644 (file)
@@ -29,7 +29,7 @@ function init
 
 function initVariables
 {
-    base.initVariables
+    base.init
 
     test -n "${mirror-unset}" || {
        local aux
@@ -59,6 +59,9 @@ function findDebootstrap
         case "$tmp" in
        (/*)                    ln -s "$tmp" "$dst";;
        (http://*|ftp://*)
+           echo $"\
+Could not find local version of 'debootstrap'; downloading it from
+${tmp}..."
            $_WGET -nv -O "$dst" "$tmp" || {
                $_CAT <<EOF >&2
 ERROR: Could not download the debootstrap package from
@@ -122,7 +125,7 @@ while true; do
     shift
 done
 
-getDistribution
+getDistribution '' 1
 
 initVariables  
 initFilesystem "$OPTION_FORCE"
@@ -137,3 +140,5 @@ mv "$VDIR"/dev "$VDIR"/dev.X
 "$DEBOOTSTRAP" "$@" "$DISTRIBUTION" "$VDIR" "$mirror" || :     ## HACK: ignore all errors...
 fixupDebian "$VDIR"
 test -z "$BUILD_INITPOST" || "$BUILD_INITPOST" "$SETUP_CONFDIR" "$UTIL_VSERVER_VARS"
+
+base.setSuccess