summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2012-07-19 18:13:13 +0200
committerDaniel Baumann <daniel@debian.org>2012-07-19 18:13:13 +0200
commit6c0ddb7d6d72d15ab2887a4b40de2c5d71f26d3a (patch)
treea095fa60bea3b776b0790ea1d08d03ecffa9be57 /scripts
parentd4999431b82024681b4be74ea6c9160f80e59c03 (diff)
downloadvyos-live-build-6c0ddb7d6d72d15ab2887a4b40de2c5d71f26d3a.tar.gz
vyos-live-build-6c0ddb7d6d72d15ab2887a4b40de2c5d71f26d3a.zip
Making sure target directory for syslinux theme files exists when building non-chrooted.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build/lb_binary_syslinux6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/build/lb_binary_syslinux b/scripts/build/lb_binary_syslinux
index 9663fa3b3..2788103dd 100755
--- a/scripts/build/lb_binary_syslinux
+++ b/scripts/build/lb_binary_syslinux
@@ -166,10 +166,10 @@ else
fi
# Copying files
-mkdir -p $(dirname ${_TARGET})
-
case "${LB_BUILD_WITH_CHROOT}" in
true)
+ mkdir -p $(dirname ${_TARGET})
+
# Copy in two steps since the theme can have absolute symlinks and would therefore not be dereferenced correctly
if [ "${LB_SYSLINUX_THEME}" = "live-build" ]
then
@@ -190,6 +190,8 @@ case "${LB_BUILD_WITH_CHROOT}" in
;;
false)
+ mkdir -p ${_TARGET}
+
cp -aL ${_SOURCE}/* ${_TARGET}
case "${LB_MODE}" in