diskimage-builder/elements/dhcp-all-interfaces/install.d/dhcp-all-interfaces.conf
Clint Byrum 28190d5954 Make dhcp-all-interfaces block all interfaces
Previously dhcp-all-interfaces was only blocking the first network
interface to come up. We add an instance stanza to make it run one
instance of generate-interfaces-file per interface. We then use flock to
serialize runs of generate-interfaces-file.

Fixes bug #1233577

Change-Id: Ib16bed6b37ce0789e315ef57e05ac561470a6f2a
2013-10-11 11:06:16 -07:00

12 lines
341 B
Plaintext

# 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 network-interface
instance $INTERFACE
task
exec /usr/local/sbin/generate-interfaces-file.sh