mirror of
git://sourceware.org/git/lvm2.git
synced 2025-02-06 01:58:01 +03:00
tests: ignore failure of zeroing
Older mdadm fails the command, when the signature is already gone.
This commit is contained in:
parent
26d76d31c5
commit
712f7dfb4c
@ -796,7 +796,7 @@ cleanup_md_dev() {
|
||||
test "$DM_DEV_DIR" = "/dev" || rm -f "$(< MD_DEV_PV)"
|
||||
|
||||
for dev in $(< MD_DEVICES); do
|
||||
mdadm --zero-superblock "$dev" 2>/dev/null
|
||||
mdadm --zero-superblock "$dev" 2>/dev/null || true
|
||||
done
|
||||
udev_wait
|
||||
rm -f MD_DEV MD_DEVICES MD_DEV_PV
|
||||
|
Loading…
x
Reference in New Issue
Block a user