bundles/zfs: unmount backup-snapshots recursively
Some checks failed
kunsi/bundlewrap/pipeline/head There was a failure building this commit
Some checks failed
kunsi/bundlewrap/pipeline/head There was a failure building this commit
This commit is contained in:
parent
931d566736
commit
0ba3df7385
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ mountpoint="/mnt/backup-snapshot${node.metadata['zfs']['datasets'][dataset]['mou
|
||||||
|
|
||||||
if findmnt "$mountpoint" >/dev/null
|
if findmnt "$mountpoint" >/dev/null
|
||||||
then
|
then
|
||||||
umount "$mountpoint" || errors=1
|
umount -R "$mountpoint" || errors=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if zfs get type "${dataset}@snapshot-backup" >/dev/null 2>&1
|
if zfs get type "${dataset}@snapshot-backup" >/dev/null 2>&1
|
||||||
|
|
Loading…
Reference in a new issue