Wit Grml 2011.12 we started to use submenus. Unfortunately enivornment
variables must be exported to be used within submenues. This means the
advanced bootoptions in GRUB do not honor loopback or the theme enviornmet
variable. This patch explictly exports all set environment variables.
Thanks to Michael Schierl for debugging and reporting the issue.
if [ -f /boot/grub/grml-theme/theme.txt ] ; then
set theme=/boot/grub/grml-theme/theme.txt
+ export theme
else
set menu_color_normal=white/black
set menu_color_highlight=black/yellow
+ export menu_color_normal
+ export menu_color_highlight
fi
if [ ${iso_path} ] ; then
set loopback="findiso=${iso_path}"
+ export loopback
fi
insmod regexp