summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lamb <chris@chris-lamb.co.uk>2008-06-15 16:51:49 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:03:35 +0100
commit369fd95bee116dfea5f97dcdd62ce7c2d8efc9ff (patch)
treee7ced6f4380b2a2971079df6936acaf015a5c198
parent51a75d515a76183a7c4c5a788d4017a968706b79 (diff)
downloadvyos-live-build-369fd95bee116dfea5f97dcdd62ce7c2d8efc9ff.tar.gz
vyos-live-build-369fd95bee116dfea5f97dcdd62ce7c2d8efc9ff.zip
Only deference symlinks on usb-hdd filesystems that do not support symlinks.
-rwxr-xr-xhelpers/lh_binary_usb-hdd8
1 files changed, 7 insertions, 1 deletions
diff --git a/helpers/lh_binary_usb-hdd b/helpers/lh_binary_usb-hdd
index 6dee10d91..7977d8b0f 100755
--- a/helpers/lh_binary_usb-hdd
+++ b/helpers/lh_binary_usb-hdd
@@ -187,9 +187,15 @@ case "${LH_CHROOT_BUILD}" in
;;
esac
+case "${LH_BINARY_FILESYSTEM}" in
+ fat*)
+ CP_OPTIONS="-L"
+ ;;
+esac
+
mkdir -p chroot/binary.tmp
${LH_ROOT_COMMAND} mount ${FREELO} chroot/binary.tmp
-cp -rL binary/* chroot/binary.tmp
+cp -r ${CP_OPTIONS} binary/* chroot/binary.tmp
FIXME()
{