1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

tests: ignore failure of zeroing

Older mdadm fails the command, when the signature is already gone.
This commit is contained in:
Zdenek Kabelac 2021-03-23 12:05:55 +01:00
parent 26d76d31c5
commit 712f7dfb4c

View File

@ -796,7 +796,7 @@ cleanup_md_dev() {
test "$DM_DEV_DIR" = "/dev" || rm -f "$(< MD_DEV_PV)" test "$DM_DEV_DIR" = "/dev" || rm -f "$(< MD_DEV_PV)"
for dev in $(< MD_DEVICES); do for dev in $(< MD_DEVICES); do
mdadm --zero-superblock "$dev" 2>/dev/null mdadm --zero-superblock "$dev" 2>/dev/null || true
done done
udev_wait udev_wait
rm -f MD_DEV MD_DEVICES MD_DEV_PV rm -f MD_DEV MD_DEVICES MD_DEV_PV