Prod the kernel to refresh the partition table after we create one. The
partprobe program is packaged with parted, which we already use, so this
introduces no new dependency.
Signed-off-by: Sage Weil <sage@inktank.com>
journal,
],
)
+ subprocess.check_call(
+ args=[
+ # also make sure the kernel refreshes the new table
+ 'partprobe',
+ journal,
+ ],
+ )
except subprocess.CalledProcessError as e:
raise PrepareError(e)
disk,
],
)
+ subprocess.check_call(
+ args=[
+ # also make sure the kernel refreshes the new table
+ 'partprobe',
+ disk,
+ ],
+ )
except subprocess.CalledProcessError as e:
raise PrepareError(e)