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'
|
||||
incremental = 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:
|
||||
chmod +x hook/fido2luks.sh keyscript.sh
|
||||
cp -f hook/fido2luks.sh /etc/initramfs-tools/hooks/
|
||||
@@ -6,6 +19,5 @@ install:
|
||||
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
|
||||
rm /etc/initramfs-tools/hooks/fido2luks.sh
|
||||
update-initramfs -u
|
||||
|
Reference in New Issue
Block a user