Export environment variables for submenues.
[grml-live.git] / templates / boot / grub / grub.cfg
1 ## grub2 configuration
2 set default=0
3 set timeout=20
4
5 if loadfont /boot/grub/ascii.pf2 ; then
6    insmod png
7    set gfxmode=auto
8    insmod gfxterm
9    insmod vbe
10    terminal_output gfxterm
11 fi
12
13 if [ -f /boot/grub/grml-theme/theme.txt ] ; then
14   set theme=/boot/grub/grml-theme/theme.txt
15   export theme
16 else
17   set menu_color_normal=white/black
18   set menu_color_highlight=black/yellow
19   export menu_color_normal
20   export menu_color_highlight
21 fi
22
23 if [ ${iso_path} ] ; then
24     set loopback="findiso=${iso_path}"
25     export loopback
26 fi
27
28 insmod regexp
29
30 for config in /boot/grub/*_default.cfg ; do source "$config" ; done
31 for config in /boot/grub/*_options.cfg ; do source "$config" ; done
32 source /boot/grub/addons.cfg
33
34 source /boot/grub/footer.cfg
35 # EOF