mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
ceph-disk-prepare: do partprobe after setting final partition type
This is necessary to kick udev into processing the updated partition and running its rules. Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
parent
b7b9af5c0d
commit
95835de9f8
@ -566,6 +566,13 @@ def prepare_dev(
|
||||
data,
|
||||
],
|
||||
)
|
||||
subprocess.check_call(
|
||||
args=[
|
||||
# also make sure the kernel refreshes the new table
|
||||
'partprobe',
|
||||
data,
|
||||
],
|
||||
)
|
||||
except subprocess.CalledProcessError as e:
|
||||
raise PrepareError(e)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user