[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[PATCH] Dont assume bash when configuring chroot with QEMU



From: Hector Oron <hector.oron@gmail.com>

  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 <hector.oron@gmail.com>
---
 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


Reply to: