From: Sage Weil Date: Fri, 15 Feb 2013 01:04:55 +0000 (-0800) Subject: ceph-disk-prepare: do partprobe after setting final partition type X-Git-Tag: v0.56.5~5^2~67 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=caad18745cd8553a012d9e7f92e59d5b4450dcf2;p=ceph.git 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 (cherry picked from commit 95835de9f80712eb26652ac6b66ba9c5eeb093d6) --- diff --git a/src/ceph-disk-prepare b/src/ceph-disk-prepare index a31ba79cbddb..6670a5281031 100755 --- a/src/ceph-disk-prepare +++ b/src/ceph-disk-prepare @@ -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)