bundles/zfs: unmount backup-snapshots recursively
Some checks failed
kunsi/bundlewrap/pipeline/head There was a failure building this commit

This commit is contained in:
Franzi 2022-03-01 06:32:23 +01:00
parent 931d566736
commit 0ba3df7385
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -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