28190d5954
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 |
||
---|---|---|
.. | ||
install.d | ||
README.md |
Autodetect network interfaces during boot and configure them for DHCP
The rationale for this is that we are likely to require multiple network interfaces for use cases such as baremetal and there is no way to know ahead of time which one is which, so we will simply run a DHCP client on all interfaces (except lo) that are visible on the first boot.
The script /usr/local/sbin/generate-interfaces-file.sh will be called early in each boot and will scan available network interfaces and ensure they are all present in /etc/network/interfaces.
Note that this element is only expected to be useful on Debian-derived distributions, currently.