From 20d3ef51ba2dc27b07bd01c43cf690cf1a6bd030 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 19 Feb 2013 16:55:04 +0100 Subject: Making some more debian source-selections conditional on certain image options. --- scripts/build/source_debian | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/scripts/build/source_debian b/scripts/build/source_debian index ad733c6d0..b7ba06b42 100755 --- a/scripts/build/source_debian +++ b/scripts/build/source_debian @@ -55,12 +55,24 @@ Chroot chroot "dpkg --get-selections" | awk '{ print $1 }' > source-selection.tx cat >> source-selection.txt << EOF ${LB_BOOTLOADER} live-build -xorriso -parted -squashfs-tools -mtd-tools EOF +case "${LB_BINARY_IMAGES}" in + iso*) + echo "xorriso" >> source-selection.txt + ;; + + hdd*) + echo "parted" >> source-selection.txt + ;; +esac + +case "${LB_CHROOT_FILESYSTEM}" in + squashfs) + echo "squashfs-tools" >> source-selection.txt + ;; +esac + case "${LB_BINARY_FILESYSTEM}" in fat*) echo "dosfstools" >> source-selection.txt -- cgit v1.2.3