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:
parent
26d76d31c5
commit
712f7dfb4c
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user