From: Yu Watanabe Date: Sun, 31 Aug 2025 00:30:22 +0000 (+0900) Subject: TEST-64-UDEV-STORAGE: do not use -f/--force option for wipefs X-Git-Tag: v259-rc1~417 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f8706915a5a8aae4791e09af12f81386ec9cc35;p=thirdparty%2Fsystemd.git 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. --- diff --git a/test/units/TEST-64-UDEV-STORAGE.sh b/test/units/TEST-64-UDEV-STORAGE.sh index c29731e6232..d04189d3c5c 100755 --- a/test/units/TEST-64-UDEV-STORAGE.sh +++ b/test/units/TEST-64-UDEV-STORAGE.sh @@ -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"