summaryrefslogtreecommitdiff
path: root/cloudinit
diff options
context:
space:
mode:
authorScott Moser <smoser@brickies.net>2016-10-21 13:54:51 -0400
committerScott Moser <smoser@brickies.net>2016-10-25 17:00:57 -0400
commit29348af1c889931e8973f8fc8cb090c063316f7a (patch)
tree41a2118d66aae5726773e0aee8976120d2eb52e8 /cloudinit
parent1e55f4127f356b930e2c1ad36dcb6bed24f3beb2 (diff)
downloadvyos-cloud-init-29348af1c889931e8973f8fc8cb090c063316f7a.tar.gz
vyos-cloud-init-29348af1c889931e8973f8fc8cb090c063316f7a.zip
disk-config: udev settle after partitioning in gpt format.
The function exec_mkpart_gpt was simply not waiting for udev events to flush after calling sgdisk. The corresponding function exec_mkpart_mbr already did. This should fix a transient failure where mkfs would fail with 'not a block device'. LP: #1626243
Diffstat (limited to 'cloudinit')
-rw-r--r--cloudinit/config/cc_disk_setup.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/cloudinit/config/cc_disk_setup.py b/cloudinit/config/cc_disk_setup.py
index efa7a226..0c4b794d 100644
--- a/cloudinit/config/cc_disk_setup.py
+++ b/cloudinit/config/cc_disk_setup.py
@@ -716,6 +716,8 @@ def exec_mkpart_gpt(device, layout):
LOG.warn("Failed to partition device %s" % device)
raise
+ read_parttbl(device)
+
def exec_mkpart(table_type, device, layout):
"""