bootloaders: reorganise installer menu entries

per layout from MR #199 discussion.

under "Advanced install options" we have:
  - Graphical installer
  - Text installer
  - Graphical installer with dark theme
  - Text installer with dark theme
  - Installer with speech synthesis

under each of these we have a set of:
  - Install
  - Expert install
  - Automated install
  - Rescue mode

note that the 'automated' entries are moved up before the 'rescue' entries.

for hotkeys, the four entries above have hotkeys of 'i', 'x', 'a', and 'r'
respectively. ('x' is used instead of 'e' to avoid clash with standard
grub hotkey). this means that some entries that previous had no hotkeys
due to the flat list now have them. the other big difference is the main
graphical install entry going from 'g' to 'i' for consistency and the main
speech synth entry going from 's' to 'i' for the same reason.

furthermore, in the level above we have 'g' for normal graphical, 't' for
normal text install, 's' for speech synth, 'd' for graphical dark mode,
and 'k' for text dark mode.

the text-only sets are identical to the graphical ones except only for
dropping the graphical groups, simplifying maintenance, bringing clarity
to users of images (who may not have even made the image) that the set is
text-only, and keeping consistent hotkeys between graphical and text-only.

a 'start installer with speech synthesis' entry shortcut has been placed
at the top menu level alongside the 'start installer' shortcut.

Gbp-Dch: Short
This commit is contained in:
Lyndon Brown 2020-05-01 19:25:40 +01:00
parent ab2e8a91f5
commit 0afd3625ed
5 changed files with 256 additions and 189 deletions

View File

@ -1,109 +1,124 @@
menuentry 'Graphical install' --hotkey=g {
linux @KERNEL_GI@ vga=788 @APPEND_INSTALL@ --- quiet
initrd @INITRD_GI@
}
menuentry 'Graphical expert install' --hotkey=x {
linux @KERNEL_GI@ priority=low vga=788 @APPEND_INSTALL@
initrd @INITRD_GI@
}
menuentry 'Graphical rescue mode' --hotkey=r {
linux @KERNEL_GI@ rescue/enable=true vga=788 @APPEND_INSTALL@ --- quiet
initrd @INITRD_GI@
}
menuentry 'Graphical automated install' --hotkey=a {
linux @KERNEL_GI@ auto=true priority=critical vga=788 @APPEND_INSTALL@ --- quiet
initrd @INITRD_GI@
}
menuentry 'Install' --hotkey=i {
linux @KERNEL_DI@ vga=788 @APPEND_INSTALL@ --- quiet
initrd @INITRD_DI@
}
menuentry 'Expert install' {
linux @KERNEL_DI@ priority=low vga=788 @APPEND_INSTALL@
initrd @INITRD_DI@
}
menuentry 'Rescue mode' {
linux @KERNEL_DI@ rescue/enable=true vga=788 @APPEND_INSTALL@ --- quiet
initrd @INITRD_DI@
}
menuentry 'Automated install' {
linux @KERNEL_DI@ auto=true priority=critical vga=788 @APPEND_INSTALL@ --- quiet
initrd @INITRD_DI@
}
submenu 'Accessible dark contrast installer options ...' --hotkey=d {
submenu 'Graphical installer ...' --hotkey=g {
source /boot/grub/theme.cfg
menuentry 'Graphical install' --hotkey=g {
menuentry 'Install' --hotkey=i {
linux @KERNEL_GI@ vga=788 @APPEND_INSTALL@ --- quiet
initrd @INITRD_GI@
}
menuentry 'Expert install' --hotkey=x {
linux @KERNEL_GI@ priority=low vga=788 @APPEND_INSTALL@
initrd @INITRD_GI@
}
menuentry 'Automated install' --hotkey=a {
linux @KERNEL_GI@ auto=true priority=critical vga=788 @APPEND_INSTALL@ --- quiet
initrd @INITRD_GI@
}
menuentry 'Rescue mode' --hotkey=r {
linux @KERNEL_GI@ rescue/enable=true vga=788 @APPEND_INSTALL@ --- quiet
initrd @INITRD_GI@
}
}
submenu 'Text installer ...' --hotkey=t {
source /boot/grub/theme.cfg
menuentry 'Install' --hotkey=i {
linux @KERNEL_DI@ vga=788 @APPEND_INSTALL@ --- quiet
initrd @INITRD_DI@
}
menuentry 'Expert install' --hotkey=x {
linux @KERNEL_DI@ priority=low vga=788 @APPEND_INSTALL@
initrd @INITRD_DI@
}
menuentry 'Automated install' --hotkey=a {
linux @KERNEL_DI@ auto=true priority=critical vga=788 @APPEND_INSTALL@ --- quiet
initrd @INITRD_DI@
}
menuentry 'Rescue mode' --hotkey=r {
linux @KERNEL_DI@ rescue/enable=true vga=788 @APPEND_INSTALL@ --- quiet
initrd @INITRD_DI@
}
}
submenu 'Graphical installer with dark theme ...' --hotkey=d {
source /boot/grub/theme.cfg
menuentry 'Install' --hotkey=i {
linux @KERNEL_GI@ vga=788 theme=dark @APPEND_INSTALL@ --- quiet
initrd @INITRD_GI@
}
menuentry 'Graphical expert install' --hotkey=x {
menuentry 'Expert install' --hotkey=x {
linux @KERNEL_GI@ priority=low vga=788 theme=dark @APPEND_INSTALL@
initrd @INITRD_GI@
}
menuentry 'Graphical rescue mode' --hotkey=r {
linux @KERNEL_GI@ rescue/enable=true vga=788 theme=dark @APPEND_INSTALL@ --- quiet
initrd @INITRD_GI@
}
menuentry 'Graphical automated install' --hotkey=a {
menuentry 'Automated install' --hotkey=a {
linux @KERNEL_GI@ auto=true priority=critical vga=788 theme=dark @APPEND_INSTALL@ --- quiet
initrd @INITRD_GI@
}
menuentry 'Rescue mode' --hotkey=r {
linux @KERNEL_GI@ rescue/enable=true vga=788 theme=dark @APPEND_INSTALL@ --- quiet
initrd @INITRD_GI@
}
}
submenu 'Text installer with dark theme ...' --hotkey=k {
source /boot/grub/theme.cfg
menuentry 'Install' --hotkey=i {
linux @KERNEL_DI@ vga=788 theme=dark @APPEND_INSTALL@ --- quiet
initrd @INITRD_DI@
}
menuentry 'Expert install' {
menuentry 'Expert install' --hotkey=x {
linux @KERNEL_DI@ priority=low vga=788 theme=dark @APPEND_INSTALL@
initrd @INITRD_DI@
}
menuentry 'Rescue mode' {
linux @KERNEL_DI@ rescue/enable=true vga=788 theme=dark @APPEND_INSTALL@ --- quiet
menuentry 'Automated install' --hotkey=a {
linux @KERNEL_DI@ auto=true priority=critical vga=788 theme=dark @APPEND_INSTALL@ --- quiet
initrd @INITRD_DI@
}
menuentry 'Automated install' {
linux @KERNEL_DI@ auto=true priority=critical vga=788 theme=dark @APPEND_INSTALL@ --- quiet
menuentry 'Rescue mode' --hotkey=r {
linux @KERNEL_DI@ rescue/enable=true vga=788 theme=dark @APPEND_INSTALL@ --- quiet
initrd @INITRD_DI@
}
}
submenu 'Speech-enabled install options ...' --hotkey=s {
submenu 'Installer with speech synthesis ...' --hotkey=s {
source /boot/grub/theme.cfg
menuentry 'Install with speech synthesis' --hotkey=s {
menuentry 'Install' --hotkey=i {
linux @KERNEL_GI@ speakup.synth=soft vga=788 @APPEND_INSTALL@ --- quiet
initrd @INITRD_GI@
}
menuentry 'Expert speech install' --hotkey=x {
menuentry 'Expert install' --hotkey=x {
linux @KERNEL_GI@ speakup.synth=soft priority=low vga=788 @APPEND_INSTALL@
initrd @INITRD_GI@
}
menuentry 'Rescue speech mode' --hotkey=r {
linux @KERNEL_GI@ speakup.synth=soft rescue/enable=true vga=788 @APPEND_INSTALL@ --- quiet
initrd @INITRD_GI@
}
menuentry 'Automated speech install' --hotkey=a {
menuentry 'Automated install' --hotkey=a {
linux @KERNEL_GI@ speakup.synth=soft auto=true priority=critical vga=788 @APPEND_INSTALL@ --- quiet
initrd @INITRD_GI@
}
menuentry 'Rescue mode' --hotkey=r {
linux @KERNEL_GI@ speakup.synth=soft rescue/enable=true vga=788 @APPEND_INSTALL@ --- quiet
initrd @INITRD_GI@
}
}

View File

@ -2,3 +2,8 @@ menuentry 'Start installer' --hotkey=i {
linux @KERNEL_GI@ vga=788 @APPEND_INSTALL@ --- quiet
initrd @INITRD_GI@
}
menuentry 'Start installer with speech synthesis' --hotkey=s {
linux @KERNEL_GI@ speakup.synth=soft vga=788 @APPEND_INSTALL@ --- quiet
initrd @INITRD_GI@
}

View File

@ -1,24 +1,29 @@
menuentry 'Install' --hotkey=i {
linux @KERNEL_DI@ vga=788 @APPEND_INSTALL@ --- quiet
initrd @INITRD_DI@
submenu 'Text installer ...' --hotkey=t {
source /boot/grub/theme.cfg
menuentry 'Install' --hotkey=i {
linux @KERNEL_DI@ vga=788 @APPEND_INSTALL@ --- quiet
initrd @INITRD_DI@
}
menuentry 'Expert install' --hotkey=x {
linux @KERNEL_DI@ priority=low vga=788 @APPEND_INSTALL@
initrd @INITRD_DI@
}
menuentry 'Automated install' --hotkey=a {
linux @KERNEL_DI@ auto=true priority=critical vga=788 @APPEND_INSTALL@ --- quiet
initrd @INITRD_DI@
}
menuentry 'Rescue mode' --hotkey=r {
linux @KERNEL_DI@ rescue/enable=true vga=788 @APPEND_INSTALL@ --- quiet
initrd @INITRD_DI@
}
}
menuentry 'Expert install' --hotkey=x {
linux @KERNEL_DI@ priority=low vga=788 @APPEND_INSTALL@
initrd @INITRD_DI@
}
menuentry 'Rescue mode' --hotkey=r {
linux @KERNEL_DI@ rescue/enable=true vga=788 @APPEND_INSTALL@ --- quiet
initrd @INITRD_DI@
}
menuentry 'Automated install' --hotkey=a {
linux @KERNEL_DI@ auto=true priority=critical vga=788 @APPEND_INSTALL@ --- quiet
initrd @INITRD_DI@
}
submenu 'Accessible dark contrast installer options ...' --hotkey=d {
submenu 'Text installer with dark theme ...' --hotkey=k {
source /boot/grub/theme.cfg
@ -32,13 +37,13 @@ submenu 'Accessible dark contrast installer options ...' --hotkey=d {
initrd @INITRD_DI@
}
menuentry 'Rescue mode' --hotkey=r {
linux @KERNEL_DI@ rescue/enable=true vga=788 theme=dark @APPEND_INSTALL@ --- quiet
initrd @INITRD_DI@
}
menuentry 'Automated install' --hotkey=a {
linux @KERNEL_DI@ auto=true priority=critical vga=788 theme=dark @APPEND_INSTALL@ --- quiet
initrd @INITRD_DI@
}
menuentry 'Rescue mode' --hotkey=r {
linux @KERNEL_DI@ rescue/enable=true vga=788 theme=dark @APPEND_INSTALL@ --- quiet
initrd @INITRD_DI@
}
}

View File

@ -1,9 +1,15 @@
label installgui
label installstart
menu label Start ^installer
linux @KERNEL_GI@
initrd @INITRD_GI@
append vga=788 @APPEND_INSTALL@ --- quiet
label installstartspeech
menu label Start installer with ^speech synthesis
linux @KERNEL_GI@
initrd @INITRD_GI@
append speakup.synth=soft vga=788 @APPEND_INSTALL@ --- quiet
menu begin install
menu label ^Advanced install options
menu title Advanced install options
@ -12,86 +18,113 @@ menu begin install
menu label ^Back..
menu exit
label installgui
menu label ^Graphical install
linux @KERNEL_GI@
initrd @INITRD_GI@
append vga=788 @APPEND_INSTALL@ --- quiet
menu begin graphicalinstall
menu label ^Graphical installer
menu title Graphical installer
include stdmenu.cfg
label mainmenu
menu label ^Back..
menu exit
label expertgui
menu label Graphical e^xpert install
linux @KERNEL_GI@
initrd @INITRD_GI@
append priority=low vga=788 @APPEND_INSTALL@
label installgui
menu label ^Install
linux @KERNEL_GI@
initrd @INITRD_GI@
append vga=788 @APPEND_INSTALL@ --- quiet
label rescuegui
menu label Graphical ^rescue mode
linux @KERNEL_GI@
initrd @INITRD_GI@
append rescue/enable=true vga=788 @APPEND_INSTALL@ --- quiet
label expertgui
menu label E^xpert install
linux @KERNEL_GI@
initrd @INITRD_GI@
append priority=low vga=788 @APPEND_INSTALL@
label autogui
menu label Graphical ^automated install
linux @KERNEL_GI@
initrd @INITRD_GI@
append auto=true priority=critical vga=788 @APPEND_INSTALL@ --- quiet
label autogui
menu label ^Automated install
linux @KERNEL_GI@
initrd @INITRD_GI@
append auto=true priority=critical vga=788 @APPEND_INSTALL@ --- quiet
label install
menu label ^Install
linux @KERNEL_DI@
initrd @INITRD_DI@
append vga=788 @APPEND_INSTALL@ --- quiet
label rescuegui
menu label ^Rescue mode
linux @KERNEL_GI@
initrd @INITRD_GI@
append rescue/enable=true vga=788 @APPEND_INSTALL@ --- quiet
menu end
label expert
menu label Expert install
linux @KERNEL_DI@
initrd @INITRD_DI@
append priority=low vga=788 @APPEND_INSTALL@
menu begin textinstall
menu label ^Text installer
menu title Text installer
include stdmenu.cfg
label mainmenu
menu label ^Back..
menu exit
label rescue
menu label Rescue mode
linux @KERNEL_DI@
initrd @INITRD_DI@
append rescue/enable=true vga=788 @APPEND_INSTALL@ --- quiet
label install
menu label ^Install
linux @KERNEL_DI@
initrd @INITRD_DI@
append vga=788 @APPEND_INSTALL@ --- quiet
label auto
menu label Automated install
linux @KERNEL_DI@
initrd @INITRD_DI@
append auto=true priority=critical vga=788 @APPEND_INSTALL@ --- quiet
label expert
menu label E^xpert install
linux @KERNEL_DI@
initrd @INITRD_DI@
append priority=low vga=788 @APPEND_INSTALL@
menu begin darkinstall
menu label Accessible ^dark contrast installer options
menu title Accessible dark contrast installer options
label auto
menu label ^Automated install
linux @KERNEL_DI@
initrd @INITRD_DI@
append auto=true priority=critical vga=788 @APPEND_INSTALL@ --- quiet
label rescue
menu label ^Rescue mode
linux @KERNEL_DI@
initrd @INITRD_DI@
append rescue/enable=true vga=788 @APPEND_INSTALL@ --- quiet
menu end
menu begin graphicalinstalldark
menu label Graphical installer with ^dark theme
menu title Graphical installer with dark theme
include stdmenu.cfg
label mainmenu
menu label ^Back..
menu exit
label darkinstallgui
menu label ^Graphical install
menu label ^Install
linux @KERNEL_GI@
initrd @INITRD_GI@
append vga=788 theme=dark @APPEND_INSTALL@ --- quiet
label darkexpertgui
menu label Graphical e^xpert install
menu label E^xpert install
linux @KERNEL_GI@
initrd @INITRD_GI@
append priority=low vga=788 theme=dark @APPEND_INSTALL@
label darkrescuegui
menu label Graphical ^rescue mode
linux @KERNEL_GI@
initrd @INITRD_GI@
append rescue/enable=true vga=788 theme=dark @APPEND_INSTALL@ --- quiet
label darkautogui
menu label Graphical ^automated install
menu label ^Automated install
linux @KERNEL_GI@
initrd @INITRD_GI@
append auto=true priority=critical vga=788 theme=dark @APPEND_INSTALL@ --- quiet
label darkrescuegui
menu label ^Rescue mode
linux @KERNEL_GI@
initrd @INITRD_GI@
append rescue/enable=true vga=788 theme=dark @APPEND_INSTALL@ --- quiet
menu end
menu begin textinstalldark
menu label Text installer with dar^k theme
menu title Text installer with dark theme
include stdmenu.cfg
label mainmenu
menu label ^Back..
menu exit
label darkinstall
menu label ^Install
linux @KERNEL_DI@
@ -99,54 +132,54 @@ menu begin install
append vga=788 theme=dark @APPEND_INSTALL@ --- quiet
label darkexpert
menu label Expert install
menu label E^xpert install
linux @KERNEL_DI@
initrd @INITRD_DI@
append priority=low vga=788 theme=dark @APPEND_INSTALL@
label darkrescue
menu label Rescue mode
linux @KERNEL_DI@
initrd @INITRD_DI@
append rescue/enable=true vga=788 theme=dark @APPEND_INSTALL@ --- quiet
label darkauto
menu label Automated install
menu label ^Automated install
linux @KERNEL_DI@
initrd @INITRD_DI@
append auto=true priority=critical vga=788 theme=dark @APPEND_INSTALL@ --- quiet
label darkrescue
menu label ^Rescue mode
linux @KERNEL_DI@
initrd @INITRD_DI@
append rescue/enable=true vga=788 theme=dark @APPEND_INSTALL@ --- quiet
menu end
menu begin speechinstall
menu label ^Speech-enabled install options
menu title Speech-enabled install options
menu label Installer with ^speech synthesis
menu title Installer with speech synthesis
include stdmenu.cfg
label mainmenu
menu label ^Back..
menu exit
label installspeechsynth
menu label Install with ^speech synthesis
menu label ^Install
linux @KERNEL_GI@
initrd @INITRD_GI@
append speakup.synth=soft vga=788 @APPEND_INSTALL@ --- quiet
label expertguispeech
menu label E^xpert speech install
menu label E^xpert install
linux @KERNEL_GI@
initrd @INITRD_GI@
append speakup.synth=soft priority=low vga=788 @APPEND_INSTALL@
label rescueguispeech
menu label ^Rescue speech mode
linux @KERNEL_GI@
initrd @INITRD_GI@
append speakup.synth=soft rescue/enable=true vga=788 @APPEND_INSTALL@ --- quiet
label autoguispeech
menu label ^Automated speech install
menu label ^Automated install
linux @KERNEL_GI@
initrd @INITRD_GI@
append speakup.synth=soft auto=true priority=critical vga=788 @APPEND_INSTALL@ --- quiet
label rescueguispeech
menu label ^Rescue mode
linux @KERNEL_GI@
initrd @INITRD_GI@
append speakup.synth=soft rescue/enable=true vga=788 @APPEND_INSTALL@ --- quiet
menu end
menu end

View File

@ -1,4 +1,4 @@
label installgui
label installstart
menu label Start ^installer
linux @KERNEL_DI@
initrd @INITRD_DI@
@ -12,33 +12,42 @@ menu begin install
menu label ^Back..
menu exit
label install
menu label ^Install
linux @KERNEL_DI@
initrd @INITRD_DI@
append vga=788 @APPEND_INSTALL@ --- quiet
menu begin textinstall
menu label ^Text installer
menu title Text installer
include stdmenu.cfg
label mainmenu
menu label ^Back..
menu exit
label expert
menu label E^xpert install
linux @KERNEL_DI@
initrd @INITRD_DI@
append priority=low vga=788 @APPEND_INSTALL@
label install
menu label ^Install
linux @KERNEL_DI@
initrd @INITRD_DI@
append vga=788 @APPEND_INSTALL@ --- quiet
label rescue
menu label ^Rescue mode
linux @KERNEL_DI@
initrd @INITRD_DI@
append rescue/enable=true vga=788 @APPEND_INSTALL@ --- quiet
label expert
menu label E^xpert install
linux @KERNEL_DI@
initrd @INITRD_DI@
append priority=low vga=788 @APPEND_INSTALL@
label auto
menu label ^Automated install
linux @KERNEL_DI@
initrd @INITRD_DI@
append auto=true priority=critical vga=788 @APPEND_INSTALL@ --- quiet
label auto
menu label ^Automated install
linux @KERNEL_DI@
initrd @INITRD_DI@
append auto=true priority=critical vga=788 @APPEND_INSTALL@ --- quiet
menu begin darkinstall
menu label Accessible ^dark contrast installer options
menu title Accessible dark contrast installer options
label rescue
menu label ^Rescue mode
linux @KERNEL_DI@
initrd @INITRD_DI@
append rescue/enable=true vga=788 @APPEND_INSTALL@ --- quiet
menu end
menu begin textinstalldark
menu label Text installer with dar^k theme
menu title Text installer with dark theme
include stdmenu.cfg
label mainmenu
menu label ^Back..
@ -56,16 +65,16 @@ menu begin install
initrd @INITRD_DI@
append priority=low vga=788 theme=dark @APPEND_INSTALL@
label darkrescue
menu label ^Rescue mode
linux @KERNEL_DI@
initrd @INITRD_DI@
append rescue/enable=true vga=788 theme=dark @APPEND_INSTALL@ --- quiet
label darkauto
menu label ^Automated install
linux @KERNEL_DI@
initrd @INITRD_DI@
append auto=true priority=critical vga=788 theme=dark @APPEND_INSTALL@ --- quiet
label darkrescue
menu label ^Rescue mode
linux @KERNEL_DI@
initrd @INITRD_DI@
append rescue/enable=true vga=788 theme=dark @APPEND_INSTALL@ --- quiet
menu end
menu end