diff options
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | upstart/cloud-init-nonet.conf | 9 |
2 files changed, 6 insertions, 4 deletions
@@ -49,6 +49,7 @@ inserted actually do something (LP: #434076, LP: #833499) - log warning on failure to set hostname (LP: #832175) - upstart/cloud-init-nonet.conf: wait for all network interfaces to be up + allow for the possibility of /var/run != /run. - DataSourceNoCloud, DataSourceOVF : do not provide a default hostname. This way the configured hostname of the system will be used if not provided by metadata (LP: #838280) diff --git a/upstart/cloud-init-nonet.conf b/upstart/cloud-init-nonet.conf index 01916354..70c7dfea 100644 --- a/upstart/cloud-init-nonet.conf +++ b/upstart/cloud-init-nonet.conf @@ -10,10 +10,11 @@ task console output script - # /var/run/network/static-network-up-emitted is written by - # /etc/network/if-up.d/upstart its presense would indicate - # that static-network-up has already fired. - [ -e /var/run/network/static-network-up-emitted ] && exit 0 + # /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 |