Compare commits
2 Commits
deb
...
initramfs-
Author | SHA1 | Date | |
---|---|---|---|
720b53511d
|
|||
962ad2a380
|
12
Cargo.toml
12
Cargo.toml
@@ -31,15 +31,3 @@ opt-level = 'z'
|
|||||||
panic = 'abort'
|
panic = 'abort'
|
||||||
incremental = false
|
incremental = false
|
||||||
overflow-checks = false
|
overflow-checks = false
|
||||||
|
|
||||||
[package.metadata.deb]
|
|
||||||
depends = "$auto, cryptsetup"
|
|
||||||
build-depends = "libclang-dev, libcryptsetup-dev"
|
|
||||||
extended-description = "Decrypt your LUKS partition using a FIDO2 compatible authenticator"
|
|
||||||
license-file = ["LICENSE", "0"]
|
|
||||||
assets = [
|
|
||||||
["target/release/fido2luks", "usr/bin/", "755"],
|
|
||||||
["initramfs-tools/keyscript.sh", "/lib/cryptsetup/scripts/fido2luks", "755" ],
|
|
||||||
["initramfs-tools/hook/fido2luks.sh", "etc/initramfs-tools/hooks/", "755" ],
|
|
||||||
["initramfs-tools/fido2luks.conf", "etc/", "644"],
|
|
||||||
]
|
|
||||||
|
@@ -1,4 +1,17 @@
|
|||||||
.PHONY: install
|
.PHONY: install clean
|
||||||
|
|
||||||
|
DRACUT_MODULES_D=/usr/lib/dracut/modules.d
|
||||||
|
DRACUT_CONF_D=/etc/dracut.conf.d
|
||||||
|
|
||||||
|
MODULE_CONF_D=dracut.conf.d
|
||||||
|
MODULE_CONF=luks-2fa.conf
|
||||||
|
MODULE_DIR=96luks-2fa
|
||||||
|
|
||||||
|
help:
|
||||||
|
@echo make help to show this help
|
||||||
|
@echo make install to install
|
||||||
|
@echo make clean to remove
|
||||||
|
|
||||||
install:
|
install:
|
||||||
chmod +x hook/fido2luks.sh keyscript.sh
|
chmod +x hook/fido2luks.sh keyscript.sh
|
||||||
cp -f hook/fido2luks.sh /etc/initramfs-tools/hooks/
|
cp -f hook/fido2luks.sh /etc/initramfs-tools/hooks/
|
||||||
@@ -6,6 +19,5 @@ install:
|
|||||||
cp -f keyscript.sh /lib/cryptsetup/scripts/fido2luks
|
cp -f keyscript.sh /lib/cryptsetup/scripts/fido2luks
|
||||||
update-initramfs -u
|
update-initramfs -u
|
||||||
remove:
|
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
|
||||||
rm /etc/initramfs-tools/hooks/fido2luks.sh /lib/cryptsetup/scripts/fido2luks
|
|
||||||
update-initramfs -u
|
update-initramfs -u
|
||||||
|
Reference in New Issue
Block a user