env_init, grub list & split

This commit is contained in:
Marc Beninca 2023-11-24 06:32:00 +01:00
parent 86d12fe01f
commit 99ae54c84c
11 changed files with 112 additions and 52 deletions

View file

@ -1,3 +1,4 @@
env_init
menu_init
default='scan'

View file

@ -1,3 +1,4 @@
env_init
menu_init
menuentry 'halt' { halt }

View file

@ -1,3 +1,4 @@
env_init
menu_init "${env}${env_mod}"
menuentry 'list file' {

View file

@ -1,3 +1,4 @@
env_init
menu_init
menuentry 'list' {

View file

@ -1,3 +1,4 @@
env_init
menu_init
menu_item 0 ' 0'

View file

@ -1,3 +1,4 @@
env_init
menu_init "${scan}"
scan "${scan}"

View file

@ -1,17 +1,18 @@
env_init
menu_init
default='split'
menuentry "cmdpath: ${cmdpath}" { nop }
menuentry "grub_cpu: ${grub_cpu} → grub_platform: ${grub_platform}" { nop }
menu_split
menuentry "check_signatures: ${check_signatures} → pager: ${pager}" { nop }
menuentry "prefix: ${prefix} → root: ${root}" { nop }
grub_list_const 'menu'
grub_split 'menu'
grub_list_vars 'menu'
grub_split 'menu'
grub_list_xtra 'menu'
menu_split 'split'
menuentry "esp: ${esp} → data: ${data}" { nop }
menuentry "env: ${env} → env_mod: ${env_mod}" { nop }
menuentry "live: ${live}" { nop }
menu_split
menu_swap "check_squashfs | ${check_squashfs}" 'check_squashfs' 'enforce' 'no'
menu_swap " live_from | ${live_from}" 'live_from' 'ram' 'media'
menuentry " pause | ${pause}" { menu 'pause' }
menu_split
menuentry "esp: ${esp}" { nop }
menuentry "env_mod: ${env_mod}" { nop }
menuentry "pager: ${pager}" { nop }

View file

@ -25,7 +25,6 @@ function menu_exit {
}
function menu_init {
env_init
if [ "${menu}" ] ; then
if [ "${1}" ] ; then
menuentry "${menu}${1}" { nop }