Making different boot options defaults depending on initramfs generator, not depending on mode.

This commit is contained in:
Daniel Baumann 2012-10-04 14:26:44 +02:00 committed by Daniel Baumann
parent 56e4085c60
commit 84dcf4ed02
1 changed files with 14 additions and 8 deletions

View File

@ -990,25 +990,31 @@ Set_defaults ()
fi
# Setting boot parameters
# LB_BOOTAPPEND_LIVE
case "${LB_MODE}" in
ubuntu)
case "${LB_INITRAMFS}" in
live-boot)
LB_BOOTAPPEND_LIVE="${LB_BOOTAPPEND_LIVE:-boot=live config quiet splash}"
;;
casper)
LB_BOOTAPPEND_LIVE="${LB_BOOTAPPEND_LIVE:-boot=casper quiet splash}"
;;
*)
LB_BOOTAPPEND_LIVE="${LB_BOOTAPPEND_LIVE:-boot=live config quiet splash}"
LB_BOOTAPPEND_LIVE="${LB_BOOTAPPEND_LIVE:-quiet splash}"
;;
esac
# LB_BOOTAPPEND_LIVE_FAILSAFE
case "${LB_MODE}" in
ubuntu)
case "${LB_INITRAMFS}" in
live-boot)
LB_BOOTAPPEND_FAILSAFE="${LB_BOOTAPPEND_FAILSAFE:-boot=live config memtest noapic noapm nodma nomce nolapic nomodeset nosmp nosplash vga=normal}"
;;
casper)
LB_BOOTAPPEND_FAILSAFE="${LB_BOOTAPPEND_FAILSAFE:-boot=casper memtest noapic noapm nodma nomce nolapic nomodeset nosmp nosplash vga=normal}"
;;
*)
LB_BOOTAPPEND_FAILSAFE="${LB_BOOTAPPEND_FAILSAFE:-boot=live config memtest noapic noapm nodma nomce nolapic nomodeset nosmp nosplash vga=normal}"
LB_BOOTAPPEND_FAILSAFE="${LB_BOOTAPPEND_FAILSAFE:-memtest noapic noapm nodma nomce nolapic nomodeset nosmp nosplash vga=normal}"
;;
esac