summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2013-02-19 16:55:04 +0100
committerDaniel Baumann <daniel@debian.org>2013-04-09 05:40:16 +0200
commita40fc3b92ab280be99a779d5355f9372c5f02589 (patch)
tree8b8aa8c88d75e95d52ea49c1a6447c97d5564003 /scripts
parent4259fcac5d3b3650cfa66f50b52413f0b9ec2182 (diff)
downloadvyos-live-build-a40fc3b92ab280be99a779d5355f9372c5f02589.tar.gz
vyos-live-build-a40fc3b92ab280be99a779d5355f9372c5f02589.zip
Making some more debian source-selections conditional on certain image options.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build/source_debian20
1 files changed, 16 insertions, 4 deletions
diff --git a/scripts/build/source_debian b/scripts/build/source_debian
index a8c0fb896..433a7befc 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