Secure Boot support
[grml-live.git] / templates / boot / grub / grmlenv.cfg
diff --git a/templates/boot/grub/grmlenv.cfg b/templates/boot/grub/grmlenv.cfg
new file mode 100644 (file)
index 0000000..fe779ee
--- /dev/null
@@ -0,0 +1,11 @@
+# this is a simple test to identify whether it looks like the Secure Boot enabled/signed
+# GRUB is running or if it's a full featured GRUB version, the former doesn't allow running cpuid
+if cpuid ; then
+  echo "It looks like Secure Boot is NOT enabled."
+  set grml_secureboot=false
+  export grml_secureboot
+else
+  echo "It looks like Secure Boot is enabled."
+  set grml_secureboot=true
+  export grml_secureboot
+fi