diskimage-builder/elements
Dan Prince 00d853e5fd DHCP: make udev rules want dhcp-interface@.service
Updates the dhcp-all-interfaces element to fix a race
with the recent udev rules implementation on Fedora.

With the new approach we make the udev rule want (require
to startup) a generic dhcp-interface@.service template which
can be started individually for each interface that is
discovered.

The dhcp-interface@.service is setup such that it:

1) It calls dhcp-all-interfaces <iface> directly with
 a pre-exec script. This creates the ifcfg file right
 before we need it but avoids the case where network.service
 might get greedy and try to start it itself.

2) Only runs if the ifcfg script doesn't already exist. This
 is important because we only need to bootstrap the DHCP configs...
 Once they exist the network.service will take care of starting them
 on reboots, upgrades, etc.

3) On initial boot ensure that the initial DHCP interfaces come
 up after network.service. Since we really only want
 dhcp-all-interfaces to help bootstrap that haven't already
 been configured this seems reasonable.

4) We also try to ensure that cloud-init
 comes up after the DHCP interfaces. Cloud init has a decently
 long timeout that this wasn't a functional problem but it keeps
 log file spew down.

Change-Id: I71b026f027182aad49c3435bb903e5e38e524685
Closes-bug: #1294803
2014-03-19 14:33:14 -04:00
..
apt-conf Enable custom apt.conf in apt-conf element 2014-02-26 19:10:23 +00:00
apt-sources Better apt-sources docs. 2014-03-06 13:29:13 +13:00
baremetal baremetal element: Enable stable interface names 2014-03-12 16:48:48 -04:00
base Move install type enablement into base element 2014-03-14 12:25:11 -04:00
cache-url Teach cache-url to handle file:// URIs. 2014-02-13 19:43:50 +00:00
cloud-init-nocloud Make cloud-init-nocloud work cross-platform. 2013-07-11 08:21:51 -07:00
debian Merge "Fix unbound variable in debian element" 2014-03-12 10:59:46 +00:00
debian-upstart Add debian-upstart for experimenting with upstart 2014-01-14 22:41:25 -08:00
deploy Add bash as a dependency to the deploy ramdisk 2014-01-27 09:32:24 +01:00
deploy-ironic Fix the curl command in the ironic-deploy element 2014-01-16 13:16:47 +00:00
deploy-kexec /bin/bash all the things. 2013-11-17 16:59:31 -06:00
dhcp-all-interfaces DHCP: make udev rules want dhcp-interface@.service 2014-03-19 14:33:14 -04:00
dib-run-parts Don't hardcode environment.d 2014-02-11 08:33:45 -05:00
disable-selinux/post-install.d Modify /etc/selinux/config if it exists 2013-12-03 15:35:49 +08:00
dkms /bin/bash all the things. 2013-11-17 16:59:31 -06:00
dpkg Mark install-packages +x. 2014-01-07 07:54:47 -05:00
dracut-network /bin/bash all the things. 2013-11-17 16:59:31 -06:00
fedora Merge "Add libaio1 to libaio pkg map for fedora" 2014-03-12 10:59:00 +00:00
hwburnin Make sorting of ramdisk init elements explicit. 2013-11-15 17:18:34 +00:00
hwdiscovery Make pxe_mac accurate in two common cases. 2013-11-17 21:43:59 -06:00
local-config Improve local-config proxy handling. 2014-02-28 00:01:11 +13:00
mellanox Split network bringup out of base ramdisk init. 2013-11-17 20:37:26 +00:00
modprobe-blacklist Add new modprobe-blacklist element. 2014-01-13 15:43:29 -05:00
opensuse Merge "Update openSUSE package mapping for libffi-dev" 2014-03-19 01:18:17 +00:00
pip-cache Add a pip-cache element. 2013-08-26 15:17:41 -04:00
pypi Merge "Update pypi element to suggest pypi-mirror" 2014-02-26 08:52:19 +00:00
ramdisk Fix ramdisk element for openSUSE 2014-01-23 14:26:11 +01:00
rhel RHEL Package maps for build-essential, python-dev and libz-dev. 2014-03-14 08:54:48 +05:30
rpm-distro Skip relabel unless SELinux is enforcing 2014-01-23 15:29:29 -05:00
selinux-permissive /bin/bash all the things. 2013-11-17 16:59:31 -06:00
serial-console Implement serial-console for systemd. 2014-01-13 13:02:54 -05:00
source-repositories Move install type enablement into base element 2014-03-14 12:25:11 -04:00
ubuntu Replace security.ubuntu.com when setting mirror 2014-02-24 11:00:24 +11:00
vm Merge "Enable extlinux support for (non-Ubuntu) Debian platforms" 2014-03-13 03:34:18 +00:00
yum Add $EXTRA_ARGS back to yum call 2014-03-03 17:42:18 +00:00
zypper Add zypper element 2013-12-11 17:09:24 +01:00