[OSSTEST PATCH 39/82] ts-host-reuse: tolerate unremoveable lv

Ian Jackson posted 82 patches 5 years ago
[OSSTEST PATCH 39/82] ts-host-reuse: tolerate unremoveable lv
Posted by Ian Jackson 5 years ago
From: Ian Jackson <ian.jackson@eu.citrix.com>

It might be a symlink in the pair tests.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
---
 ts-host-reuse | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ts-host-reuse b/ts-host-reuse
index e14a9149..74ac94aa 100755
--- a/ts-host-reuse
+++ b/ts-host-reuse
@@ -112,7 +112,7 @@ ENDI
                 printf 'LV %s...\n' "$dev"
                 if ! test -e $dev; then continue; fi
                 dd if=/dev/urandom bs=1024 count=4096 of=$dev ||:
-                lvremove -f $dev
+                lvremove -f $dev ||:
             done
         done
 ENDQ
-- 
2.20.1