Include both and in luks key name.

master
Steven Brudenell 2017-08-03 21:39:55 -04:00
parent e2b877a18b
commit c427603cd1
1 changed files with 1 additions and 1 deletions

View File

@ -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)