summaryrefslogtreecommitdiff
path: root/cloudinit/net
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2016-03-29 09:11:25 -0400
committerScott Moser <smoser@ubuntu.com>2016-03-29 09:11:25 -0400
commit78c9de871eb2a68da36fb4397fe756b88dc9eb15 (patch)
treecd7814ae943f5f1da557272f634874439cdbac52 /cloudinit/net
parent18bf614ca1d9fbabdf83495e7675a2cacaf6c2f4 (diff)
parentbf88c6ef54608f4488fca806b5f30afad08d6c51 (diff)
downloadvyos-cloud-init-78c9de871eb2a68da36fb4397fe756b88dc9eb15.tar.gz
vyos-cloud-init-78c9de871eb2a68da36fb4397fe756b88dc9eb15.zip
improve how cloud-init-wait waits
Instead of sleep and check loop, use 'udevadm settle' to wait. since we run from a udev event, this is sufficient. udev settle will exit when either of a.) the file exists b.) the udev event queue has all been processed. c.) timeout is reached. Since cloud-init-wait is being run as a udev event, 'b' cannot be satisfied until it finishes. Thus, this essentially becomes a inotify based wait for the file /run/cloud-init/network-config-ready and no loops are needed.
Diffstat (limited to 'cloudinit/net')
0 files changed, 0 insertions, 0 deletions