aboutsummaryrefslogtreecommitdiffstats
path: root/mkinitcpio/ykfde
blob: f4115d6414a93eaffe70a6ad88b97003cbd945b6 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

build() {
	# This will update to LUKS key slot if Yubikey is available.
	# Do not fail if key is not present!
	/usr/bin/ykfde >/dev/null 2>/dev/null || true

	# 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
	add_full_dir /etc/ykfde.d/
}

help() {
	echo "This hook adds support for opening LUKS devices with Yubico key."
	echo "Please use command 'ykfde' to prepare."
}