livecd-rootfs/live-build/ubuntu-core/hooks/04-configure_network.chroot
Steve Langasek 6d34c7a9e9 live-build/ubuntu-core/hooks/04-configure_network.chroot: use
'allow-hotplug' for the network config, not 'auto', to work around
systemd behavior that causes 'auto' to delay the rest of the boot when
DHCP is not available on the network.
2015-01-14 22:53:01 -08:00

10 lines
154 B
Bash
Executable File

#!/bin/sh -x
if=eth0
# Manually configure the first ethernet device
cat >/etc/network/interfaces.d/"$if"<<EOT
allow-hotplug $if
iface $if inet dhcp
EOT