Refresh Secure Boot support, supporting new 'debian' method
[grml-live.git] / templates / boot / grub / header.cfg
1 set default=0
2 set timeout=20
3
4 if loadfont /boot/grub/ascii.pf2 ; then
5    insmod png
6    set gfxmode=auto
7    insmod gfxterm
8    terminal_output gfxterm
9 fi
10
11 if [ "${grml_secureboot}" = "true" ] ; then
12   if [ -f /boot/grub/grml-theme/sb-theme.txt ] ; then
13     set theme=/boot/grub/grml-theme/sb-theme.txt
14     export theme
15   else
16     set menu_color_normal=white/black
17     set menu_color_highlight=black/orange
18     export menu_color_normal
19     export menu_color_highlight
20   fi
21 elif [ -f /boot/grub/grml-theme/theme.txt ] ; then
22   set theme=/boot/grub/grml-theme/theme.txt
23   export theme
24 else
25   set menu_color_normal=white/black
26   set menu_color_highlight=black/yellow
27   export menu_color_normal
28   export menu_color_highlight
29 fi
30
31 if [ ${iso_path} ] ; then
32     set loopback="findiso=${iso_path}"
33     export loopback
34 fi