livecd-rootfs/live-build/ubuntu-core/hooks/04-configure_network.chroot
Steve Langasek 46882a81aa Import patches-unapplied version 2.275+ppa2 to ubuntu/vivid-proposed
Imported using git-ubuntu import.

Changelog parent: e9c37a48e9398794be88d0f437b5f0b287e29180

New changelog entries:
  * 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.
  * live-build/ubuntu-core/hooks/00-uid-gid-fix.chroot_early:
    - port static uid/gid setup from ubuntu-touch
  * live-build/ubuntu-core/hooks/15-pycompile-snappy.chroot:
    - byte compile .pyc files for snappy
2015-01-15 06:58:45 +00: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