lvm_self_backup: Fix unmount issues

Somehow unmount fails if the mount is already unmounted, so we just ignore unmounts exit code
This commit is contained in:
saibotk 2024-02-07 23:32:26 +01:00
parent dae41f9c7c
commit b3153e2a5b
Signed by: saibotk
GPG key ID: 67585F0065E261D5

View file

@ -23,7 +23,7 @@ ExecStopPost=/usr/bin/docker rm --force duplicity-backup-lvm
# Unmount snapshots
{% for item in lvm_self_backup_vols %}
ExecStopPost=/usr/bin/umount /dev/{{ item.vg_name }}/{{ item.lv_name }}_snap
ExecStopPost=/usr/bin/umount /dev/{{ item.vg_name }}/{{ item.lv_name }}_snap || true
{% endfor %}
# Remove snapshots