(cd) Fix GRUB menu timeout (on first load)
This commit is contained in:
parent
4aba5b1cfc
commit
a0886ff28d
@ -27,9 +27,6 @@ function set_theme {
|
||||
set theme=/boot/grub/theme.txt
|
||||
}
|
||||
|
||||
set timeout_style=menu
|
||||
set timeout=5
|
||||
|
||||
function load_modules {
|
||||
echo "Loading modules..."
|
||||
module /mod/zero.ko
|
||||
|
@ -1,5 +1,11 @@
|
||||
set_theme
|
||||
|
||||
if [ ! "${seen_menu}" = "yes" ]; then
|
||||
set timeout=5
|
||||
set seen_menu="yes"
|
||||
export seen_menu
|
||||
fi
|
||||
|
||||
submenu 'Live CD' {
|
||||
multiboot /kernel vid=${t_driver},${t_resolution} start=live-welcome ${t_root}
|
||||
load_modules
|
||||
|
Loading…
x
Reference in New Issue
Block a user