Making sure target directory for syslinux theme files exists when building non-chrooted.

This commit is contained in:
Daniel Baumann 2012-07-19 18:13:13 +02:00
parent d4999431b8
commit 6c0ddb7d6d
1 changed files with 4 additions and 2 deletions

View File

@ -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