Changing how syslinux files are copied to make netboot images work properly.
authorchals <chals@altorricon.com>
Sun, 5 May 2013 10:01:57 +0000 (12:01 +0200)
committerDaniel Baumann <mail@daniel-baumann.ch>
Mon, 6 May 2013 12:50:08 +0000 (14:50 +0200)
scripts/build/binary_syslinux

index 51903b0..c66cde8 100755 (executable)
@@ -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)