mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-25 06:07:38 +00:00
add .loop extension to /dev/mapper volume to identify its nature
This commit is contained in:
parent
9be5dff823
commit
72da5b481e
2
tomb
2
tomb
@ -655,7 +655,7 @@ render_mapper() {
|
|||||||
[[ "$TOMBNAME" == "" ]] &&
|
[[ "$TOMBNAME" == "" ]] &&
|
||||||
_failure "cannot render mapper: missing \$TOMBNAME"
|
_failure "cannot render mapper: missing \$TOMBNAME"
|
||||||
local maphash=`realpath $tombpath | sha256sum -z`
|
local maphash=`realpath $tombpath | sha256sum -z`
|
||||||
mapper="tomb.$TOMBNAME.${maphash[(w)1]}"
|
mapper="tomb.$TOMBNAME.${maphash[(w)1]}.loop"
|
||||||
local mounted_tombs=(`list_tomb_mounts`)
|
local mounted_tombs=(`list_tomb_mounts`)
|
||||||
local usedmapper
|
local usedmapper
|
||||||
for t in ${mounted_tombs}; do
|
for t in ${mounted_tombs}; do
|
||||||
|
Loading…
Reference in New Issue
Block a user