summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorchals <chals@altorricon.com>2013-05-05 12:01:57 +0200
committerDaniel Baumann <mail@daniel-baumann.ch>2013-05-06 14:50:08 +0200
commit36a44c849ad3cf21c7178146f5160155e44fc8d7 (patch)
tree4d4a90826c2637eebcc677706e0abbb5fd874fd1 /scripts
parent9a15cd0114a3691ea677f480723d8fa82eb0fa66 (diff)
downloadvyos-live-build-36a44c849ad3cf21c7178146f5160155e44fc8d7.tar.gz
vyos-live-build-36a44c849ad3cf21c7178146f5160155e44fc8d7.zip
Changing how syslinux files are copied to make netboot images work properly.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build/binary_syslinux6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/build/binary_syslinux b/scripts/build/binary_syslinux
index 51903b048..c66cde83b 100755
--- a/scripts/build/binary_syslinux
+++ b/scripts/build/binary_syslinux
@@ -145,13 +145,13 @@ Install_package
# Copying files
case "${LB_BUILD_WITH_CHROOT}" in
true)
- mkdir -p $(dirname ${_TARGET})
+ mkdir -p ${_TARGET}
# Copy in two steps since the theme can have absolute symlinks and would therefore not be dereferenced correctly
cp -a ${_SOURCE} chroot/root
Chroot chroot cp -aL /root/$(basename ${_SOURCE}) /root/$(basename ${_SOURCE}).tmp || true
- rm -rf chroot/root/$(basename ${_SOURCE})
- mv chroot/root/$(basename ${_SOURCE}).tmp ${_TARGET}
+ cp -a chroot/root/$(basename ${_SOURCE}).tmp/* ${_TARGET}
+ rm -rf chroot/root/$(basename ${_SOURCE}) chroot/root/$(basename ${_SOURCE}).tmp
;;
false)