diff options
author | Daniel Baumann <daniel@debian.org> | 2010-11-13 15:45:36 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 19:20:35 +0100 |
commit | 3250e188554a7b6d33fee21bdddb3dbeff5ffdc9 (patch) | |
tree | a901051ea6f5af84b7706878f7631ab09ec5883e | |
parent | 868353f0b378f5cb1bec6fa23c85524e3917ead9 (diff) | |
download | vyos-live-build-3250e188554a7b6d33fee21bdddb3dbeff5ffdc9.tar.gz vyos-live-build-3250e188554a7b6d33fee21bdddb3dbeff5ffdc9.zip |
Making d-i indices copying depending on binary image type.
-rwxr-xr-x | scripts/build/lb_binary_debian-installer | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/scripts/build/lb_binary_debian-installer b/scripts/build/lb_binary_debian-installer index 380e3f6f8..31e95bcb6 100755 --- a/scripts/build/lb_binary_debian-installer +++ b/scripts/build/lb_binary_debian-installer @@ -617,18 +617,29 @@ EOF rm -f chroot/binary.sh mv chroot/root/binary ./ - case "${LB_BINARY_FILESYSTEM}" in - fat*) - # Creating dist directories - for DISTRIBUTION in frozen stable testing unstable ${LB_DISTRIBUTION} - do - cp -a ${LB_DEBIAN_INSTALLER_DISTRIBUTION} binary/dists/${DISTRIBUTION} - done + DISTRIBUTIONS="frozen stable testing unstable" + + if [ "${LB_DEBIAN_INSTALLER_DISTRIBUTION}" != "${LB_DISTRIBUTION}" ] + then + DISTRIBUTIONS="${DISTRIBUTIONS} ${LB_DISTRIBUTION}" + fi + + case "${LB_BINARY_IMAGES}" in + usb-hdd) + case "${LB_BINARY_FILESYSTEM}" in + fat*) + # Creating dist directories + for DISTRIBUTION in ${DISTRIBUTIONS} + do + cp -a binary/dists/${LB_DEBIAN_INSTALLER_DISTRIBUTION} binary/dists/${DISTRIBUTION} + done + ;; + esac ;; *) # Creating dist symlinks - for DISTRIBUTION in frozen stable testing unstable ${LB_DISTRIBUTION} + for DISTRIBUTION in ${DISTRIBUTIONS} do ln -s ${LB_DEBIAN_INSTALLER_DISTRIBUTION} binary/dists/${DISTRIBUTION} done |