Change mntp->keydev in loopback key luks name.

master
Steven Brudenell 2017-07-28 12:19:47 -04:00
parent 690b24f02f
commit e2b877a18b
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-$mntp-$keypath" '/' '-')"
local key="/dev/mapper/$(str_replace "loop-keydev-$keydev-$keypath" '/' '-')"

if [ ! -b $key ]; then
local loopdev=$(losetup -f "${mntp}/${keypath}" --show)