From b235f16ce4137c8b6260b9d79f1124b62a8e66f4 Mon Sep 17 00:00:00 2001 From: Jaromil Date: Thu, 24 Jun 2021 07:36:50 +0200 Subject: [PATCH] correct shell sequence to open without tomb script fix #372 thanks to @grcancelliere --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index de14f1e..4eb9c11 100644 --- a/README.md +++ b/README.md @@ -160,10 +160,8 @@ following commands as root: ``` lo=$(losetup -f) losetup -f secret.tomb -pass="$(gpg -d secret.key)" -echo -n -e "$pass" | cryptsetup --key-file - luksOpen $lo secret +gpg -d secret.key | head -c -1 | cryptsetup --key-file - luksOpen $lo secret mount /dev/mapper/secret /mnt -unset pass ``` One can change the last argument `/mnt` to where the Tomb has to be mounted and made accessible. To close the tomb then use: