diff options
author | Scott Moser <smoser@ubuntu.com> | 2016-03-18 20:40:54 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2016-03-18 20:40:54 -0400 |
commit | 519c0936e3e80fc14225e500fbb61d0d12d28c35 (patch) | |
tree | c3aaf80acaf6f9208b529d84978f23de1210c071 /udev/79-cloud-init-net-wait.rules | |
parent | 72b56d0f59f321519f25b039937a24b0ce338295 (diff) | |
download | vyos-cloud-init-519c0936e3e80fc14225e500fbb61d0d12d28c35.tar.gz vyos-cloud-init-519c0936e3e80fc14225e500fbb61d0d12d28c35.zip |
commit the systemd waiting mechanism
Note, still broken as cloud-init local is not going to ever touch the
CI_NET_READY file (/run/cloud-init/network-config-ready).
So as this is , it will actually just block for 60 seconds and go on.
Diffstat (limited to 'udev/79-cloud-init-net-wait.rules')
-rw-r--r-- | udev/79-cloud-init-net-wait.rules | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/udev/79-cloud-init-net-wait.rules b/udev/79-cloud-init-net-wait.rules new file mode 100644 index 00000000..8344222a --- /dev/null +++ b/udev/79-cloud-init-net-wait.rules @@ -0,0 +1,10 @@ +# cloud-init cold/hot-plug blocking mechanism +# this file blocks further processing of network events +# until cloud-init local has had a chance to read and apply network +SUBSYSTEM!="net", GOTO="cloudinit_naming_end" +ACTION!="add", GOTO="cloudinit_naming_end" + +IMPORT{program}="/lib/udev/cloud-init-wait" + +LABEL="cloudinit_naming_end" +# vi: ts=4 expandtab syntax=udevrules |