1
0
mirror of https://github.com/systemd/systemd synced 2025-10-06 00:13:24 +02:00

TEST-64-UDEV-STORAGE: do not use -f/--force option for wipefs

When -f/--force is used, wipefs does not call ioctl(BLKRRPART), hence
the partitions will remain in sysfs. Let's not use the option.

This also makes it use 'udevadm lock' for safety.
This commit is contained in:
Yu Watanabe
2025-08-31 09:30:22 +09:00
parent cd8a1a8ef7
commit 0f8706915a

View File

@@ -836,7 +836,7 @@ EOF
btrfs filesystem show
helper_check_device_symlinks
helper_check_device_units
wipefs -a -f "${devices[0]}"
udevadm lock --timeout=30 --device="${devices[0]}" wipefs -a "${devices[0]}"
udevadm wait --settle --timeout=30 --removed /dev/disk/by-partlabel/diskpart{1..4}
echo "Multiple devices: using disks, data: raid10, metadata: raid10, mixed mode"