aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2014-04-17 10:50:35 +0200
committerGravatar Christian Hesse <mail@eworm.de>2014-04-17 10:50:35 +0200
commit09a783e4ca5026efc458ca4f3495c494ebfffc44 (patch)
tree01ee984aecd9f96e39a24fced6dc4d72db6ce15c
parentf403576e5001e0a602d6799fd9478df76525a2a9 (diff)
downloadmkinitcpio-ykfde-09a783e4ca5026efc458ca4f3495c494ebfffc44.tar.gz
mkinitcpio-ykfde-09a783e4ca5026efc458ca4f3495c494ebfffc44.tar.zst
add infos about /etc/crypttab.initramfs to documentation
-rw-r--r--README.md14
-rwxr-xr-xbin/ykfde3
2 files changed, 11 insertions, 6 deletions
diff --git a/README.md b/README.md
index ce95385..8bb3307 100644
--- a/README.md
+++ b/README.md
@@ -38,13 +38,19 @@ This will place files to their desired places in filesystem.
Usage
-----
-First prepare the key. Plug it in, make sure it is configured for HMAC-
-SHA1, then run:
+First prepare the key. Plug it in, make sure it is configured for
+`HMAC-SHA1`, then run:
> ykfde -d /dev/`LUKS-device`
-This will add a new slot to your LUKS device. Add `ykfde` to your hook
-list in `/etc/mkinitcpio.conf` and rebuild your initramfs with:
+This will store a challenge in `/etc/ykfde.d/` and add a new slot to
+your LUKS device. Make sure systemd knows about your encrypted device by
+adding a line to `/etc/crypttab.initramfs`. It should read like:
+
+> `mapping-name` /dev/`LUKS-device` -
+
+Add `ykfde` to your hook list in `/etc/mkinitcpio.conf` and rebuild your
+initramfs with:
> mkinitcpio -p linux
diff --git a/bin/ykfde b/bin/ykfde
index 41f2718..7aa7a9f 100755
--- a/bin/ykfde
+++ b/bin/ykfde
@@ -75,5 +75,4 @@ shred --remove "${TMPDIR}/ykfde-response"
rm -rf "${TMPDIR}"
echo "Please do not forget to remove old keys when changing challenge!"
-echo "Now make sure /etc/crypttab.initramfs has the needed entry, then"
-echo "run 'mkinitcpio' to build a new initramfs!"
+echo "Now run 'mkinitcpio' to build a new initramfs!"