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>
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