tweak PATH for debootstrap
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Wed, 22 Jan 2014 12:04:05 +0000 (13:04 +0100)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Wed, 22 Jan 2014 12:04:05 +0000 (13:04 +0100)
lbuild-initvm.sh

index 016ee52..0395fe1 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 () {