diskimage-builder/elements/debootstrap/install.d
Antoine Musso 2209d34372 debootstrap: avoid duplicate network configuration
On Debian network configuration can be done via /etc/network/interfaces.
It can accept a statement to load additional files, which varied in
history:

Wheezy only supports 'source' (see b822581)
Jessie supports 'source-directory' and comes with the statement by
default.

However since 754dd05 we inconditionally inject 'source', thus on Jessie
the configuration ends up with:

 source-directory /etc/network/interfaces.d/*
 source /etc/network/interfaces.d/*

When networking is started, 'ifup -a' parses the list of interfaces
twice. When configured with dhcp, that causes two dhclient to spawn
which might conflict with each other.

Inject the source statement only if there is neither a source or
source-directory with the same path.

Change-Id: Iefa9c9584f676e50481c621b4111eded3125a50b
2016-12-21 10:23:32 +01:00
..
10-debian-networking debootstrap: avoid duplicate network configuration 2016-12-21 10:23:32 +01:00
12-debian-locale-gen Set default locale to image in debootstrap element 2016-03-18 10:04:50 +01:00
15-cleanup-debootstrap Export FS_TYPE and remove hardcoded ext4 values 2016-05-19 17:33:36 +10:00