From 75ebe056d92d9d6add8ae4038cf0ac9bf5e67e82 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Wed, 25 Jun 2014 08:00:38 +0200 Subject: [PATCH] don't exit 1 on non-existing snapshots --- sbin/lvremove | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/lvremove b/sbin/lvremove index 3136805..c99accd 100755 --- a/sbin/lvremove +++ b/sbin/lvremove @@ -13,7 +13,7 @@ if echo $* | grep -q $EXTP_VG ; then done # destroy snapshot and clone - zfs destroy -R $EXTP_ZFS/$VOL_NAME + zfs destroy -R $EXTP_ZFS/$VOL_NAME || exit 0 # FIXME test -e /dev/$EXTP_VG/$VOL_NAME && rm /dev/$EXTP_VG/$VOL_NAME else /sbin/lvm lvrename $* -- 2.20.1