summaryrefslogtreecommitdiff
path: root/src/op_mode/install_mok.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/op_mode/install_mok.sh')
-rwxr-xr-xsrc/op_mode/install_mok.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/op_mode/install_mok.sh b/src/op_mode/install_mok.sh
new file mode 100755
index 000000000..29f78cd1f
--- /dev/null
+++ b/src/op_mode/install_mok.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+if test -f /var/lib/shim-signed/mok/vyos-dev-2025-shim.der; then
+ mokutil --ignore-keyring --import /var/lib/shim-signed/mok/vyos-dev-2025-shim.der;
+else
+ echo "Secure Boot Machine Owner Key not found";
+fi