Change mntp->keydev in loopback key luks name.
parent
690b24f02f
commit
e2b877a18b
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue