12 lines
481 B
Makefile
12 lines
481 B
Makefile
.PHONY: install
|
|
install:
|
|
chmod +x hook/fido2luks.sh keyscript.sh
|
|
cp -f hook/fido2luks.sh /etc/initramfs-tools/hooks/
|
|
mkdir -p /usr/share/fido2luks
|
|
cp -f keyscript.sh /lib/cryptsetup/scripts/fido2luks
|
|
update-initramfs -u
|
|
remove:
|
|
sh -c "grep 'keyscript=fido2luks' -i /etc/crypttab && ( echo 'ERROR: your system is still setup to use fido2luks during boot' && exit 1) || exit 0"
|
|
rm /etc/initramfs-tools/hooks/fido2luks.sh /lib/cryptsetup/scripts/fido2luks
|
|
update-initramfs -u
|