Export environment variables for submenues.
authorUlrich Dangel <mru@grml.org>
Sun, 25 Dec 2011 20:42:04 +0000 (21:42 +0100)
committerUlrich Dangel <mru@grml.org>
Sun, 25 Dec 2011 21:20:41 +0000 (22:20 +0100)
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.

templates/boot/grub/grub.cfg

index d290dd8..aba78da 100644 (file)
@@ -12,13 +12,17 @@ fi
 
 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