sd_fusing.py: Invoke ioctl to reread partitions directly
authorKarol Lewandowski <k.lewandowsk@samsung.com>
Wed, 22 May 2024 12:57:56 +0000 (14:57 +0200)
committerJaehoon Chung <jh80.chung@samsung.com>
Mon, 28 Oct 2024 11:28:45 +0000 (20:28 +0900)
commit76d8e2e6e43d7c1b912df609b2b04ea51c64b8eb
tree916482633ff9b282c985608b8e693db073bde61b
parentec73de92ba3e09c2bdf83080ea94e694ea4f83ba
sd_fusing.py: Invoke ioctl to reread partitions directly

This commit drops blockdev(8) in favor for invoking ioctl(2) directly,
to be able to catch EBUSY errors that happen to occur due to not yet
known kernel/udev timinig issue.

This commit also drops sfdisk --no-reread flag, which affects issuing
ioctl to reread partition table _before_ actual repartitioning.  ioctl
to reread partition table after writing changes is invoked unconditionally
and can't be disabled.

Change-Id: I105c445f9fdb3d1d2eee7ffd2de3f7ad04920f13
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
scripts/tizen/sd_fusing.py