Generate static loopback.cfg configuration without depending on GRUB's regexp module
[grml-live.git] / templates / boot / grub / header.cfg
diff --git a/templates/boot/grub/header.cfg b/templates/boot/grub/header.cfg
new file mode 100644 (file)
index 0000000..2b78bbc
--- /dev/null
@@ -0,0 +1,25 @@
+set default=0
+set timeout=20
+
+if loadfont /boot/grub/ascii.pf2 ; then
+   insmod png
+   set gfxmode=auto
+   insmod gfxterm
+   insmod vbe
+   terminal_output gfxterm
+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