From 64d2e53e0741967c69c0c23c3b331cc0d429f075 Mon Sep 17 00:00:00 2001
From: Chris Lamb <chris@chris-lamb.co.uk>
Date: Sun, 15 Jun 2008 16:51:49 +0100
Subject: Only deference symlinks on usb-hdd filesystems that do not support
 symlinks.

Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
---
 helpers/lh_binary_usb-hdd | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

(limited to 'helpers')

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()
 {
-- 
cgit v1.2.3