summaryrefslogtreecommitdiff
path: root/helpers/lh_binary_syslinux
diff options
context:
space:
mode:
authorCody A.W. Somerville <cody.somerville@canonical.com>2009-06-08 07:36:05 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:09:44 +0100
commit16ba7aa98e3caea9de641e4b40ed8186157dc15d (patch)
tree7a1666cf923b05d119920f418a9da8c65fedec66 /helpers/lh_binary_syslinux
parent5239579ad0b5c5f17344f0931adf52792a6029d8 (diff)
downloadvyos-live-build-16ba7aa98e3caea9de641e4b40ed8186157dc15d.tar.gz
vyos-live-build-16ba7aa98e3caea9de641e4b40ed8186157dc15d.zip
Fixing build failure in lh_binary_syslinux that occurs if exithelp.cfg does not exist.
Diffstat (limited to 'helpers/lh_binary_syslinux')
-rwxr-xr-xhelpers/lh_binary_syslinux5
1 files changed, 4 insertions, 1 deletions
diff --git a/helpers/lh_binary_syslinux b/helpers/lh_binary_syslinux
index 5e5009ac2..d69b8a0df 100755
--- a/helpers/lh_binary_syslinux
+++ b/helpers/lh_binary_syslinux
@@ -294,7 +294,10 @@ Configure_syslinux_templates ()
$template_file
done
- sed -i -e 's/isolinux.cfg/syslinux.cfg/' ${SYSLINUX_PATH}/exithelp.cfg
+ if [ -f "${SYSLINUX_PATH}/exithelp.cfg" ]
+ then
+ sed -i -e 's/isolinux.cfg/syslinux.cfg/' ${SYSLINUX_PATH}/exithelp.cfg
+ fi
# Syslinux v3.31 in etch does not support include statements
if [ "${LH_DISTRIBUTION}" = "etch" ]