Refresh Secure Boot support, supporting new 'debian' method
[grml-live.git] / templates / boot / grub / header.cfg
index fe6382d..bf79d81 100644 (file)
@@ -8,7 +8,17 @@ if loadfont /boot/grub/ascii.pf2 ; then
    terminal_output gfxterm
 fi
 
-if [ -f /boot/grub/grml-theme/theme.txt ] ; then
+if [ "${grml_secureboot}" = "true" ] ; then
+  if [ -f /boot/grub/grml-theme/sb-theme.txt ] ; then
+    set theme=/boot/grub/grml-theme/sb-theme.txt
+    export theme
+  else
+    set menu_color_normal=white/black
+    set menu_color_highlight=black/orange
+    export menu_color_normal
+    export menu_color_highlight
+  fi
+elif [ -f /boot/grub/grml-theme/theme.txt ] ; then
   set theme=/boot/grub/grml-theme/theme.txt
   export theme
 else