let’s see how a debian build would go
[build.git] / lbuild-initvm.sh
index 016ee52..5700724 100755 (executable)
@@ -508,7 +508,9 @@ function debian_install () {
     mkdir -p $rootfs_path
     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"