Fix the commit message in the patch. Control: tag -1 + patch
From 000bfba5a55e51995e40a7735efed9e10f9da2ed Mon Sep 17 00:00:00 2001 From: Rohan Garg <ro...@garg.io> Date: Mon, 12 Dec 2016 11:49:03 +0100 Subject: [PATCH] Run debootstrap with qemu-debootstrap
Simplify the code and simply run the bootstrap via qemu-debootstrap --- scripts/build/bootstrap_debootstrap | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/scripts/build/bootstrap_debootstrap b/scripts/build/bootstrap_debootstrap index a89fc42..419a031 100755 --- a/scripts/build/bootstrap_debootstrap +++ b/scripts/build/bootstrap_debootstrap @@ -108,12 +108,8 @@ then DEBOOTSTRAP_OPTIONS="${DEBOOTSTRAP_OPTIONS} --exclude=$(echo ${LB_BOOTSTRAP_QEMU_EXCLUDE} | sed 's| *|,|g')" fi - Echo_message "Bootstrap will be foreign" - debootstrap ${DEBOOTSTRAP_OPTIONS} --foreign "${LB_PARENT_DISTRIBUTION}" chroot "${LB_PARENT_MIRROR_BOOTSTRAP}" ${DEBOOTSTRAP_SCRIPT} - - Echo_message "Running debootstrap second stage under QEMU" - cp ${LB_BOOTSTRAP_QEMU_STATIC} chroot/usr/bin - Chroot chroot /bin/sh /debootstrap/debootstrap --second-stage ${FOREIGN_DEBOOTSTRAP_OPTIONS} + Echo_message "Running debootstrap with qemu-debootstrap" + qemu-debootstrap ${DEBOOTSTRAP_OPTIONS} "${LB_PARENT_DISTRIBUTION}" chroot "${LB_PARENT_MIRROR_BOOTSTRAP}" ${DEBOOTSTRAP_SCRIPT} else debootstrap ${DEBOOTSTRAP_OPTIONS} "${LB_PARENT_DISTRIBUTION}" chroot "${LB_PARENT_MIRROR_BOOTSTRAP}" ${DEBOOTSTRAP_SCRIPT} fi -- 2.10.2