aboutsummaryrefslogtreecommitdiffstats
path: root/mkinitcpio/ykfde-2f
diff options
context:
space:
mode:
Diffstat (limited to 'mkinitcpio/ykfde-2f')
-rw-r--r--mkinitcpio/ykfde-2f14
1 files changed, 14 insertions, 0 deletions
diff --git a/mkinitcpio/ykfde-2f b/mkinitcpio/ykfde-2f
new file mode 100644
index 0000000..5e09dd9
--- /dev/null
+++ b/mkinitcpio/ykfde-2f
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+build() {
+ add_systemd_unit cryptsetup-pre.target
+ add_systemd_unit ykfde-2f.service
+ add_symlink "/usr/lib/systemd/system/sysinit.target.wants/ykfde-2f.service" "../ykfde-2f.service"
+ add_file /usr/lib/systemd/scripts/ykfde-2f
+ add_binary keyctl
+ add_binary systemd-ask-password
+}
+
+help() {
+ echo "This hook adds 2nd factor support for Yubikey full disk encryption."
+}