aboutsummaryrefslogtreecommitdiffstats
path: root/main/secureboot-hook/secureboot-hook.post-install
diff options
context:
space:
mode:
Diffstat (limited to 'main/secureboot-hook/secureboot-hook.post-install')
-rw-r--r--main/secureboot-hook/secureboot-hook.post-install16
1 files changed, 16 insertions, 0 deletions
diff --git a/main/secureboot-hook/secureboot-hook.post-install b/main/secureboot-hook/secureboot-hook.post-install
new file mode 100644
index 00000000000..709e5ada549
--- /dev/null
+++ b/main/secureboot-hook/secureboot-hook.post-install
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+ln -s /usr/share/kernel-hooks.d/secureboot.hook /etc/kernel-hooks.d/50-secureboot.hook
+
+case "$(. /etc/mkinitfs/mkinitfs.conf 2>/dev/null; printf %s "$disable_trigger")" in
+ yes | true | 1) exit 0;;
+esac
+
+cat >&2 <<EOF
+*
+* After configuring Secure Boot, disable mkinitfs trigger:
+* echo 'disable_trigger=yes' >> /etc/mkinitfs/mkinitfs.conf
+*
+EOF
+
+exit 0