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:
Sage Weil 2013-02-14 17:04:55 -08:00
parent b7b9af5c0d
commit 95835de9f8

View File

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