With modern LVM this would deactivate the source volume too. So
instead it stops and prompts. It's not necessary anyway given that we
are passing -f to lvremove.
if [ $rc = 0 ]; then
set +e
if [ $rc = 0 ]; then
set +e
- lvchange $lvm_lvtools_opts -a n $old_lv_dev
lvremove -f $lvm_lvtools_opts $old_lv_dev
set -e
rm $vardir/snap-device
lvremove -f $lvm_lvtools_opts $old_lv_dev
set -e
rm $vardir/snap-device
chiark-utils (4.5.0~iwj4) unstable; urgency=medium
* Add debian/.debhelper to .gitignore.
chiark-utils (4.5.0~iwj4) unstable; urgency=medium
* Add debian/.debhelper to .gitignore.
+ * Backup: No longer attempt to lvchange -a n the snapshot volume.