summaryrefslogtreecommitdiffstats
path: root/mkinitcpio
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2014-12-23 18:25:17 +0100
committerGravatar Christian Hesse <mail@eworm.de>2014-12-23 18:25:17 +0100
commit11bd572adf4a861e4c42123c2dadbacd3349af93 (patch)
tree995a932a7c13b463ec46c1b096012bc999561fd1 /mkinitcpio
parentc96ab47092b799c274a4021b19b7f9cb3ddbb98d (diff)
downloadmkinitcpio-ykfde-11bd572adf4a861e4c42123c2dadbacd3349af93.tar.gz
mkinitcpio-ykfde-11bd572adf4a861e4c42123c2dadbacd3349af93.tar.zst
support updating the challenge on boot
Diffstat (limited to 'mkinitcpio')
-rw-r--r--mkinitcpio/ykfde-cpio15
1 files changed, 15 insertions, 0 deletions
diff --git a/mkinitcpio/ykfde-cpio b/mkinitcpio/ykfde-cpio
new file mode 100644
index 0000000..c055a6d
--- /dev/null
+++ b/mkinitcpio/ykfde-cpio
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+build() {
+ # install files to initramfs
+ add_binary /usr/lib/udev/ykfde
+ add_file /usr/lib/initcpio/udev/20-ykfde.rules /usr/lib/udev/rules.d/20-ykfde.rules
+ add_file /etc/ykfde.conf
+}
+
+help() {
+ echo "This hook adds support for opening LUKS devices with Yubico key."
+ echo "Please use command 'ykfde' to prepare."
+ echo "The hook ykfde-cpio does NOT include challenges! Please load"
+ echo "additional cpio archive with bootloader."
+}