Adding failsafe entries for syslinux bootloaders in embedded configs.

This commit is contained in:
Daniel Baumann 2012-04-29 09:30:50 +02:00
parent ad8e313e7a
commit 224a2304c8
4 changed files with 22 additions and 1 deletions

View File

@ -182,6 +182,7 @@ then
-e "s|@KERNEL@|/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" \
"${_TARGET}/live.cfg.in" >> "${_TARGET}/live.cfg"
rm -f "${_TARGET}/live.cfg.in"
@ -201,6 +202,7 @@ then
-e "s|@KERNEL@|/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" \
"${_TARGET}/live.cfg.in" >> "${_TARGET}/live.cfg"
done
@ -209,7 +211,8 @@ then
esac
elif [ -e "${_TARGET}/live.cfg" ]
then
sed -i -e "s|@LB_BOOTAPPEND_LIVE@|${LB_BOOTAPPEND_LIVE}|g" \
sed -i -e "s|@LB_BOOTAPPEND_LIVE@|${LB_BOOTAPPEND_LIVE}|g" \
-e "s|@LB_BOOTAPPEND_FAILSAFE@|${LB_BOOTAPPEND_FAILSAFE}|g" \
${_TARGET}/live.cfg
fi

View File

@ -3,3 +3,9 @@ label live-@FLAVOUR@
menu default
kernel @KERNEL@
append initrd=@INITRD@ boot=live config @LB_BOOTAPPEND_LIVE@
label live-@FLAVOUR@-failsafe
menu label ^Live (@FLAVOUR@ failsafe)
menu default
kernel @KERNEL@
append initrd=@INITRD@ boot=live config @LB_BOOTAPPEND_LIVE@ @LB_BOOTAPPEND_FAILSAFE@

View File

@ -3,3 +3,9 @@ label live-@FLAVOUR@
menu default
kernel @KERNEL@
append initrd=@INITRD@ boot=live config @LB_BOOTAPPEND_LIVE@
label live-@FLAVOUR@-failsafe
menu label ^Live (@FLAVOUR@ failsafe)
menu default
kernel @KERNEL@
append initrd=@INITRD@ boot=live config @LB_BOOTAPPEND_LIVE@ @LB_BOOTAPPEND_FAILSAFE@

View File

@ -3,3 +3,9 @@ label live-@FLAVOUR@
menu default
kernel @KERNEL@
append initrd=@INITRD@ boot=live config @LB_BOOTAPPEND_LIVE@
label live-@FLAVOUR@-failsafe
menu label ^Live (@FLAVOUR@ failsafe)
menu default
kernel @KERNEL@
append initrd=@INITRD@ boot=live config @LB_BOOTAPPEND_LIVE@ @LB_BOOTAPPEND_FAILSAFE@