diff options
author | Scott Moser <smoser@brickies.net> | 2016-10-21 13:54:51 -0400 |
---|---|---|
committer | Scott Moser <smoser@brickies.net> | 2016-10-25 17:00:57 -0400 |
commit | 29348af1c889931e8973f8fc8cb090c063316f7a (patch) | |
tree | 41a2118d66aae5726773e0aee8976120d2eb52e8 /cloudinit | |
parent | 1e55f4127f356b930e2c1ad36dcb6bed24f3beb2 (diff) | |
download | vyos-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.py | 2 |
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): """ |