/etc/init/cloud-init-nonet.conf is in cloud-init 0.6.3-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | # cloud-init-no-net
# the purpose of this job is
# * to block running of cloud-init until all network interfaces
# configured in /etc/network/interfaces are up
# * timeout if they all do not come up in a reasonable amount of time
start on mounted MOUNTPOINT=/ and stopped cloud-init-local
stop on static-network-up
task
console output
script
# /run/network/static-network-up-emitted is written by
# upstart (via /etc/network/if-up.d/upstart). its presense would
# indicate that static-network-up has already fired.
EMITTED="/run/network/static-network-up-emitted"
[ -e "$EMITTED" -o -e "/var/$EMITTED" ] && exit 0
[ -f /var/lib/cloud/instance/obj.pkl ] && exit 0
start networking >/dev/null
short=10; long=120;
sleep ${short}
echo $UPSTART_JOB "waiting ${long} seconds for a network device."
sleep ${long}
echo $UPSTART_JOB "gave up waiting for a network device."
: > /var/lib/cloud/data/no-net
end script
# EOF
|