From: Hector Oron <[email protected]>

  Currently running second stage with QEMU on a chroot without bash fails.
  The following patch teaches chroot to use /bin/sh instead default /bin/bash.

Signed-off-by: Hector Oron <[email protected]>
---
 scripts/build/lb_bootstrap_debootstrap |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/build/lb_bootstrap_debootstrap 
b/scripts/build/lb_bootstrap_debootstrap
index 080335d..f169926 100755
--- a/scripts/build/lb_bootstrap_debootstrap
+++ b/scripts/build/lb_bootstrap_debootstrap
@@ -154,7 +154,7 @@ then
 
                Echo_message "Running debootstrap second stage under QEMU"
                cp ${LB_BOOTSTRAP_QEMU_STATIC} chroot/usr/bin
-               Chroot chroot /debootstrap/debootstrap --second-stage
+               Chroot chroot /bin/sh /debootstrap/debootstrap --second-stage
        else
                ${LB_ROOT_COMMAND} debootstrap ${DEBOOTSTRAP_OPTIONS} 
"${LB_PARENT_DISTRIBUTION}" chroot "${LB_PARENT_MIRROR_BOOTSTRAP}"
        fi
-- 
1.7.10


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

Reply via email to