diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2013-03-27 14:05:35 +0100 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2013-05-06 14:50:07 +0200 |
commit | ff8e4ef6aa2c6dfa6eb0f57077e22cfacd8b3704 (patch) | |
tree | 88828b876d70a27015a68a0561b1a32ae7482cf7 | |
parent | 86e15f61c038907b28f61d7ca8e1a73018244494 (diff) | |
download | vyos-live-build-ff8e4ef6aa2c6dfa6eb0f57077e22cfacd8b3704.tar.gz vyos-live-build-ff8e4ef6aa2c6dfa6eb0f57077e22cfacd8b3704.zip |
Unifying append options in binary_syslinux when processing configuration files.
-rwxr-xr-x | scripts/build/binary_syslinux | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/scripts/build/binary_syslinux b/scripts/build/binary_syslinux index bc86a4bd6..51903b048 100755 --- a/scripts/build/binary_syslinux +++ b/scripts/build/binary_syslinux @@ -175,8 +175,6 @@ then sed -e "s|@FLAVOUR@|${LB_LINUX_FLAVOURS}|g" \ -e "s|@LINUX@|/live/vmlinuz|g" \ -e "s|@INITRD@|/live/initrd.img|g" \ - -e "s#@APPEND_LIVE@#${LB_BOOTAPPEND_LIVE}#g" \ - -e "s#@APPEND_LIVE_FAILSAFE@#${LB_BOOTAPPEND_LIVE_FAILSAFE}#g" \ "${_TARGET}/live.cfg.in" >> "${_TARGET}/live.cfg" rm -f "${_TARGET}/live.cfg.in" @@ -203,8 +201,6 @@ then sed -i -e "s|@FLAVOUR@|${_FLAVOUR}|g" \ -e "s|@LINUX@|/live/vmlinuz${_NUMBER}|g" \ -e "s|@INITRD@|/live/initrd${_NUMBER}.img|g" \ - -e "s#@APPEND_LIVE@#${LB_BOOTAPPEND_LIVE}#g" \ - -e "s#@APPEND_LIVE_FAILSAFE@#${LB_BOOTAPPEND_LIVE_FAILSAFE}#g" \ "${_TARGET}/live.cfg" done @@ -215,9 +211,10 @@ fi for _FILE in "${_TARGET}"/*.cfg do - sed -i -e "s#@LB_BOOTAPPEND_LIVE@#${LB_BOOTAPPEND_LIVE}#g" \ - -e "s#@LB_BOOTAPPEND_LIVE_FAILSAFE@#${LB_BOOTAPPEND_LIVE_FAILSAFE}#g" \ + sed -i -e "s#@APPEND_LIVE@#${LB_BOOTAPPEND_LIVE}#g" \ + -e "s#@APPEND_LIVE_FAILSAFE@#${LB_BOOTAPPEND_LIVE_FAILSAFE}#g" \ -e "s#@APPEND_INSTALL@#${LB_BOOTAPPEND_INSTALL}#g" \ + -e "s#@APPEND_INSTALL_FAILSAFE@#${LB_BOOTAPPEND_INSTALL_FAILSAFE}#g" \ "${_FILE}" done |