diff options
author | Daniel Baumann <daniel@debian.org> | 2010-11-02 11:41:51 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 19:20:35 +0100 |
commit | 232e515df4fcea90f2eaf13d65fd401ffa3f584c (patch) | |
tree | ae9346b7e22b88c3827ab694c2f61be56832faad /scripts/build/lb_binary_debian-installer | |
parent | cd172cfe215a28f18ba33e36286d6d9c0282af75 (diff) | |
download | vyos-live-build-232e515df4fcea90f2eaf13d65fd401ffa3f584c.tar.gz vyos-live-build-232e515df4fcea90f2eaf13d65fd401ffa3f584c.zip |
Workarounding symlink on usb-hdd when including debian-installer and using vfat filesystems.
Diffstat (limited to 'scripts/build/lb_binary_debian-installer')
-rwxr-xr-x | scripts/build/lb_binary_debian-installer | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/scripts/build/lb_binary_debian-installer b/scripts/build/lb_binary_debian-installer index b61b1368c..faef0c299 100755 --- a/scripts/build/lb_binary_debian-installer +++ b/scripts/build/lb_binary_debian-installer @@ -617,17 +617,22 @@ EOF rm -f chroot/binary.sh mv chroot/root/binary ./ - # Creating dist symlinks - for DISTRIBUTION in frozen stable testing unstable ${LB_DISTRIBUTION} - do - ln -s ${LB_DEBIAN_INSTALLER_DISTRIBUTION} binary/dists/${DISTRIBUTION} - done - - case "${LB_BINARY_IMAGES}" in - usb*) + case "${LB_BINARY_FILESYSTEM}" in + vat*) + # Creating dist directories + for DISTRIBUTION in frozen stable testing unstable ${LB_DISTRIBUTION} + do + cp -a ${LB_DEBIAN_INSTALLER_DISTRIBUTION} binary/dists/${DISTRIBUTION} + done ;; *) + # Creating dist symlinks + for DISTRIBUTION in frozen stable testing unstable ${LB_DISTRIBUTION} + do + ln -s ${LB_DEBIAN_INSTALLER_DISTRIBUTION} binary/dists/${DISTRIBUTION} + done + ln -s . binary/debian ;; esac |