aboutsummaryrefslogtreecommitdiffstats
path: root/mkinitcpio
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2016-01-16 02:13:22 +0100
committerGravatar Christian Hesse <mail@eworm.de>2016-01-16 02:26:21 +0100
commit40a0f31f1838d4774ebd960640bfb230dc562ea1 (patch)
treed2997424c305efd41a210432f1fad8aa9f6d88ee /mkinitcpio
parentf4c501575f6c6119acc8177406612bdfafab3cb3 (diff)
downloadmkinitcpio-ykfde-40a0f31f1838d4774ebd960640bfb230dc562ea1.tar.gz
mkinitcpio-ykfde-40a0f31f1838d4774ebd960640bfb230dc562ea1.tar.zst
We have support for second factor. Yeah!
Diffstat (limited to 'mkinitcpio')
-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."
+}