From c427603cd19e89d21f16774a8e10171f9791e7b8 Mon Sep 17 00:00:00 2001 From: Steven Brudenell Date: Thu, 3 Aug 2017 21:39:55 -0400 Subject: [PATCH] Include both and in luks key name. --- modules.d/91crypt-loop/crypt-loop-lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules.d/91crypt-loop/crypt-loop-lib.sh b/modules.d/91crypt-loop/crypt-loop-lib.sh index f2f10583..8bfc39e0 100755 --- a/modules.d/91crypt-loop/crypt-loop-lib.sh +++ b/modules.d/91crypt-loop/crypt-loop-lib.sh @@ -16,7 +16,7 @@ loop_decrypt() { local keydev="$3" local device="$4" - local key="/dev/mapper/$(str_replace "loop-keydev-$keydev-$keypath" '/' '-')" + local key="/dev/mapper/$(str_replace "loop-$keydev-$mntp-$keypath" '/' '-')" if [ ! -b $key ]; then local loopdev=$(losetup -f "${mntp}/${keypath}" --show)