Simplify internal replacement strings when processing syslinux configuration files.
This commit is contained in:
parent
c9def02d74
commit
fd73a68615
|
@ -219,10 +219,10 @@ then
|
|||
mv binary/live/initrd.img-* binary/live/initrd.img
|
||||
|
||||
sed -e "s|@FLAVOUR@|${LB_LINUX_FLAVOURS}|g" \
|
||||
-e "s|@KERNEL@|/live/vmlinuz|g" \
|
||||
-e "s|@LINUX@|/live/vmlinuz|g" \
|
||||
-e "s|@INITRD@|/live/initrd.img|g" \
|
||||
-e "s|@LB_BOOTAPPEND_LIVE@|${LB_BOOTAPPEND_LIVE}|g" \
|
||||
-e "s|@LB_BOOTAPPEND_FAILSAFE@|${LB_BOOTAPPEND_FAILSAFE}|g" \
|
||||
-e "s|@APPEND_LIVE@|${LB_BOOTAPPEND_LIVE}|g" \
|
||||
-e "s|@APPEND_FAILSAFE@|${LB_BOOTAPPEND_FAILSAFE}|g" \
|
||||
"${_TARGET}/live.cfg.in" >> "${_TARGET}/live.cfg"
|
||||
|
||||
rm -f "${_TARGET}/live.cfg.in"
|
||||
|
@ -239,10 +239,10 @@ then
|
|||
mv binary/live/initrd.img-*-${_FLAVOUR} binary/live/initrd${_NUMBER}.img
|
||||
|
||||
sed -e "s|@FLAVOUR@|${_FLAVOUR}|g" \
|
||||
-e "s|@KERNEL@|/live/vmlinuz${_NUMBER}|g" \
|
||||
-e "s|@LINUX@|/live/vmlinuz${_NUMBER}|g" \
|
||||
-e "s|@INITRD@|/live/initrd${_NUMBER}.img|g" \
|
||||
-e "s|@LB_BOOTAPPEND_LIVE@|${LB_BOOTAPPEND_LIVE}|g" \
|
||||
-e "s|@LB_BOOTAPPEND_FAILSAFE@|${LB_BOOTAPPEND_FAILSAFE}|g" \
|
||||
-e "s|@APPEND_LIVE@|${LB_BOOTAPPEND_LIVE}|g" \
|
||||
-e "s|@APPEND_FAILSAFE@|${LB_BOOTAPPEND_FAILSAFE}|g" \
|
||||
"${_TARGET}/live.cfg.in" >> "${_TARGET}/live.cfg"
|
||||
done
|
||||
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
label live-@FLAVOUR@
|
||||
menu label ^Live (@FLAVOUR@)
|
||||
menu default
|
||||
linux @KERNEL@
|
||||
linux @LINUX@
|
||||
initrd @INITRD@
|
||||
append @LB_BOOTAPPEND_LIVE@
|
||||
append @APPEND_LIVE@
|
||||
|
||||
label live-@FLAVOUR@-failsafe
|
||||
menu label ^Live (@FLAVOUR@ failsafe)
|
||||
menu default
|
||||
linux @KERNEL@
|
||||
linux @LINUX@
|
||||
initrd @INITRD@
|
||||
append @LB_BOOTAPPEND_LIVE@ @LB_BOOTAPPEND_FAILSAFE@
|
||||
append @APPEND_LIVE@ @APPEND_FAILSAFE@
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
label live-@FLAVOUR@
|
||||
menu label ^Live (@FLAVOUR@)
|
||||
menu default
|
||||
linux @KERNEL@
|
||||
linux @LINUX@
|
||||
initrd @INITRD@
|
||||
append @LB_BOOTAPPEND_LIVE@
|
||||
append @APPEND_LIVE@
|
||||
|
||||
label live-@FLAVOUR@-failsafe
|
||||
menu label ^Live (@FLAVOUR@ failsafe)
|
||||
menu default
|
||||
linux @KERNEL@
|
||||
linux @LINUX@
|
||||
initrd @INITRD@
|
||||
append @LB_BOOTAPPEND_LIVE@ @LB_BOOTAPPEND_FAILSAFE@
|
||||
append @APPEND_LIVE@ @APPEND_FAILSAFE@
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
label live-@FLAVOUR@
|
||||
menu label ^Live (@FLAVOUR@)
|
||||
menu default
|
||||
linux @KERNEL@
|
||||
linux @LINUX@
|
||||
initrd @INITRD@
|
||||
append @LB_BOOTAPPEND_LIVE@
|
||||
append @APPEND_LIVE@
|
||||
|
||||
label live-@FLAVOUR@-failsafe
|
||||
menu label ^Live (@FLAVOUR@ failsafe)
|
||||
menu default
|
||||
linux @KERNEL@
|
||||
linux @LINUX@
|
||||
initrd @INITRD@
|
||||
append @LB_BOOTAPPEND_LIVE@ @LB_BOOTAPPEND_FAILSAFE@
|
||||
append @APPEND_LIVE@ @APPEND_FAILSAFE@
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
label live-@FLAVOUR@
|
||||
menu label ^Live (@FLAVOUR@)
|
||||
menu default
|
||||
linux @KERNEL@
|
||||
linux @LINUX@
|
||||
initrd @INITRD@
|
||||
append @LB_BOOTAPPEND_LIVE@
|
||||
append @APPEND_LIVE@
|
||||
|
||||
label live-@FLAVOUR@-failsafe
|
||||
menu label ^Live (@FLAVOUR@ failsafe)
|
||||
menu default
|
||||
linux @KERNEL@
|
||||
linux @LINUX@
|
||||
initrd @INITRD@
|
||||
append @LB_BOOTAPPEND_LIVE@ @LB_BOOTAPPEND_FAILSAFE@
|
||||
append @APPEND_LIVE@ @APPEND_FAILSAFE@
|
||||
|
|
Loading…
Reference in New Issue