Only automatically do replacements within syslinux configs when they are not directories (as they can be in the pxelinux.cfg case), thanks to Antony Messerli <amesserl@rackspace.com> (Closes: #745760).

This commit is contained in:
Daniel Baumann 2014-04-25 20:51:14 +02:00
parent 145418141e
commit 7a52186c1b
1 changed files with 1 additions and 1 deletions

View File

@ -253,7 +253,7 @@ esac
for _FILE in "${_TARGET}"/*.cfg ${_TARGET}/*.svg
do
if [ -e "${_FILE}" ]
if [ -e "${_FILE}" ] && [ ! -d "${_FILE}" ]
then
sed -i -e "s#@APPEND_LIVE@#${LB_BOOTAPPEND_LIVE}#g" \
-e "s#@APPEND_LIVE_FAILSAFE@#${LB_BOOTAPPEND_LIVE_FAILSAFE}#g" \