From: Ian Jackson Date: Tue, 26 Apr 2016 23:29:15 +0000 (+0100) Subject: Backup: No longer attempt to lvchange -a n the snapshot volume. X-Git-Tag: archive/debian/5.0.0~20 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=chiark-utils.git;a=commitdiff_plain;h=4fc3411ed35ea72797a2e207ef86cb6752480978;ds=sidebyside Backup: No longer attempt to lvchange -a n the snapshot volume. 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. --- diff --git a/backup/snap-common b/backup/snap-common index 52a2c41..1806a71 100644 --- a/backup/snap-common +++ b/backup/snap-common @@ -62,7 +62,6 @@ lvmdropcore () { 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 diff --git a/debian/changelog b/debian/changelog index 71dc387..64fc918 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,7 @@ 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. --