summaryrefslogtreecommitdiff
path: root/helpers/lh_binary_syslinux
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2009-11-01 14:06:46 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:09:48 +0100
commit57a8ef8442a6ab37f1a56477a38e740fde4c0fde (patch)
treed7eec7c2b1dfe0dc5632623d9a878b8764ae9736 /helpers/lh_binary_syslinux
parentbcb1e6f7d514e37df4db39fab595277f9e701ba6 (diff)
downloadvyos-live-build-57a8ef8442a6ab37f1a56477a38e740fde4c0fde.tar.gz
vyos-live-build-57a8ef8442a6ab37f1a56477a38e740fde4c0fde.zip
Correcting pathes in include statements when building netboot images (Closes: #546910).
Diffstat (limited to 'helpers/lh_binary_syslinux')
-rwxr-xr-xhelpers/lh_binary_syslinux6
1 files changed, 6 insertions, 0 deletions
diff --git a/helpers/lh_binary_syslinux b/helpers/lh_binary_syslinux
index d43ce12db..29bd3396a 100755
--- a/helpers/lh_binary_syslinux
+++ b/helpers/lh_binary_syslinux
@@ -627,6 +627,12 @@ case "${LH_BINARY_IMAGES}" in
ln -s ${LIVE_KERNEL_PATH}/pxelinux.cfg ${SYSLINUX_PATH}/pxelinux.cfg
ln -s ${LIVE_KERNEL_PATH}/pxelinux.0 ${SYSLINUX_PATH}/pxelinux.0
+ # Adjusting include pathes
+ for FILE in ${SCREEN_PATH}/*.cfg
+ do
+ sed -i -e "s|^include |include ${LIVE_SCREEN_PATH}/|g" "${FILE}"
+ done
+
mv ${SCREEN_PATH}/syslinux.cfg ${KERNEL_PATH}/pxelinux.cfg/default
# Copying configuration file