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>
(cherry picked from commit
402e1f5319a52c309eca936081fddede1f107268)
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)