diff options
author | Daniel Baumann <daniel@debian.org> | 2013-02-19 16:55:04 +0100 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2013-05-06 14:50:06 +0200 |
commit | 20d3ef51ba2dc27b07bd01c43cf690cf1a6bd030 (patch) | |
tree | d281f68001793a954b48b13679bdb47aff3f3de8 | |
parent | 48939b9ac9d2644580326e7d4c82d8189a22b9c5 (diff) | |
download | vyos-live-build-20d3ef51ba2dc27b07bd01c43cf690cf1a6bd030.tar.gz vyos-live-build-20d3ef51ba2dc27b07bd01c43cf690cf1a6bd030.zip |
Making some more debian source-selections conditional on certain image options.
-rwxr-xr-x | scripts/build/source_debian | 20 |
1 files 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 |