Pass components to debootstrap --second-stage
Commit e24e4b in debootstrap fixed setup_available to work in the --foreign case (iotw at the second stage). Unfortunately this breaks things if components aren't passed to the second stage _and_ your main component isn't called main. To fix this, pass --components to both the first and second stage debootstrap when needed. Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
This commit is contained in:
parent
f152f99599
commit
c12f7d715e
|
@ -16,6 +16,8 @@ live-build (1:20160105) UNRELEASED; urgency=medium
|
|||
after building. Closes: #816204
|
||||
* Try to reuse /isolinux/splash.png in default grub configuration.
|
||||
* Drop debian/source/{local-options,options} as they are no longer needed.
|
||||
* Pass components to debootstrap --second-stage. Closes: #806782
|
||||
Thanks to Sjoerd Simons <sjoerd.simons@collabora.co.uk> for the patch.
|
||||
|
||||
-- Raphaël Hertzog <hertzog@debian.org> Tue, 05 Jan 2016 18:03:44 +0100
|
||||
|
||||
|
|
|
@ -62,6 +62,7 @@ if [ "${LB_ARCHIVE_AREAS}" != "main" ]
|
|||
then
|
||||
# Modify archive areas to remove leading/trailing whitespaces and replace other whitepspace with commas
|
||||
DEBOOTSTRAP_OPTIONS="${DEBOOTSTRAP_OPTIONS} --components=$(echo ${LB_ARCHIVE_AREAS} | sed -e 's| |,|g')"
|
||||
FOREIGN_DEBOOTSTRAP_OPTIONS="--components=$(echo ${LB_ARCHIVE_AREAS} | sed -e 's| |,|g')"
|
||||
fi
|
||||
|
||||
if [ "${_VERBOSE}" = "true" ]
|
||||
|
@ -112,7 +113,7 @@ then
|
|||
|
||||
Echo_message "Running debootstrap second stage under QEMU"
|
||||
cp ${LB_BOOTSTRAP_QEMU_STATIC} chroot/usr/bin
|
||||
Chroot chroot /bin/sh /debootstrap/debootstrap --second-stage
|
||||
Chroot chroot /bin/sh /debootstrap/debootstrap --second-stage ${FOREIGN_DEBOOTSTRAP_OPTIONS}
|
||||
else
|
||||
debootstrap ${DEBOOTSTRAP_OPTIONS} "${LB_PARENT_DISTRIBUTION}" chroot "${LB_PARENT_MIRROR_BOOTSTRAP}"
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue