After changing the partition table, allow the udev event to be
processed before calling partprobe. This helps prevent partprobe
from getting a resource busy error on some platforms.
Signed-off-by: Gary Lowell <gary.lowell@inktank.com>
(cherry picked from commit
9eda8e5d5abf0743a2ad484806cfb2018243515f)
journal,
],
)
+ subprocess.check_call(
+ args=[
+ # wait for udev event queue to clear
+ 'udevadm',
+ 'settle',
+ '--timeout=10',
+ ],
+ )
subprocess.check_call(
args=[
# also make sure the kernel refreshes the new table
data,
],
)
+ subprocess.check_call(
+ args=[
+ # wait for udev event queue to clear
+ 'udevadm',
+ 'settle',
+ '--timeout=10',
+ ],
+ )
subprocess.check_call(
args=[
# also make sure the kernel refreshes the new table
data,
],
)
+ subprocess.check_call(
+ args=[
+ # wait for udev event queue to clear
+ 'udevadm',
+ 'settle',
+ '--timeout=10',
+ ],
+ )
subprocess.check_call(
args=[
# also make sure the kernel refreshes the new table