4a751ba162
Cloud-init needs to query the metadata server after the network interfaces are configured. The upstart job "cloud-init-nonet" is specifically in place to provide a hook to block cloud-init from running while we rearrange network interface configurations. Fixes bug #1233577 Change-Id: Ib5cf75d858fdb670b2abcc082e912c4644d6b169
10 lines
320 B
Text
10 lines
320 B
Text
# Call a script to generate an /etc/network/interfaces file to DHCP all available interfaces
|
|
# Then remove this config file so the script is never run again
|
|
|
|
description "DHCP any connected, but unconfigured network interfaces"
|
|
|
|
start on starting cloud-init-nonet
|
|
|
|
task
|
|
|
|
exec /usr/local/sbin/generate-interfaces-file.sh
|