let’s see how a debian build would go
[build.git] / lbuild-initvm.sh
index c64a5a6..5700724 100755 (executable)
@@ -506,9 +506,11 @@ function debian_install () {
     set -e
     set -x
     mkdir -p $rootfs_path
-    arch=$(canonical_arch $personality)
+    arch=$(canonical_arch $personality $fcdistro)
     mirror=$(debian_mirror $fcdistro)
-    debootstrap --arch $arch $fcdistro $rootfs_path $mirror
+    # old guests have mount in /bin but this is no longer part of 
+    # the standard PATH in recent hosts
+    PATH=$PATH:/bin:/sbin debootstrap --arch $arch $fcdistro $rootfs_path $mirror
 }
 
 function debian_configure () {
@@ -537,8 +539,6 @@ function setup_lxc() {
        debootstrap)
            debian_install || { echo "failed to install debian/ubuntu root image"; exit 1 ; }
            debian_configure || { echo "failed to configure debian/ubuntu for a container"; exit 1 ; }
-           echo "$COMMAND: no support for debootstrap-based systems - yet"
-           exit 1
            ;;
        *)
            echo "$COMMAND:: unknown package_method - exiting"