Include both and in luks key name.
parent
e2b877a18b
commit
c427603cd1
|
|
@ -16,7 +16,7 @@ loop_decrypt() {
|
||||||
local keydev="$3"
|
local keydev="$3"
|
||||||
local device="$4"
|
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
|
if [ ! -b $key ]; then
|
||||||
local loopdev=$(losetup -f "${mntp}/${keypath}" --show)
|
local loopdev=$(losetup -f "${mntp}/${keypath}" --show)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue