scripts: sd_fusing: wait for udev after sfdisk 41/312441/5
authorJacek Kryszyn <j.kryszyn@samsung.com>
Mon, 10 Jun 2024 06:45:41 +0000 (08:45 +0200)
committerJaehoon Chung <jh80.chung@samsung.com>
Thu, 13 Jun 2024 04:22:43 +0000 (13:22 +0900)
commitd1298c26421f3e8f9f057c1f2949bbd62f4d0dee
tree017f7e3ed862b0312adb8a379d49bd7bc6f79faf
parent67b027813f68a33cfba07756f3c86e95552c1192
scripts: sd_fusing: wait for udev after sfdisk

It was observed that errors related to wrong partition table
were thrown from time to time after repartitoning the device
with sfdisk. It seems that this was due to udev trying to
automatically rescan devices after being notified that some
changes were made.

This commit adds execution of udevadm settle after sfdisk.
The added command exits only after the udev event queue is
empty (or the timeout occured).

This commit reverts changes made by commit 5a7f3c8 (Invoke
ioctl to reread partitions directly) which are not needed
anymore. Running blockdev after sfdisk is also unnecessary
since sfdisk rereads the partition table anyway.

Change-Id: Ic89ea65846b4e064c85a316fdf6c07be42eb51e7
Signed-off-by: Jacek Kryszyn <j.kryszyn@samsung.com>
scripts/tizen/sd_fusing.py