grml-debootstrap icon indicating copy to clipboard operation
grml-debootstrap copied to clipboard

Prepare switch from legacy network interfaces to systemd-networkd

Open jkirk opened this issue 6 years ago • 6 comments

By default grml-debootstrap used the host /etc/network/interfaces file to configure the network of the guest system. We now provide a systemd-networkd configuration enabling DHCP on all network devices next to the legacy /etc/network/interfaces which only enables DHCP on eth0 (which does not work when using the predictable devices names).

If no networking option is given, this will be the new default.

NOTE: systemd-networkd is currently not enabled by default.

jkirk avatar Jul 24 '18 19:07 jkirk

@mika Currently systemd-networkd is not enabled on the target system.

Should we enable it by default (at least for Debian/stretch+ releases)?

jkirk avatar Jul 25 '18 04:07 jkirk

@mika: I updated the PR. Please review. Thx.

jkirk avatar Jul 25 '18 17:07 jkirk

@mika; And yes, the next step is to enable systemd-networkd. But I am not sure if this should be part of this PR.

jkirk avatar Jul 25 '18 17:07 jkirk

Via @zeha and https://twitter.com/CyrilBrulebois/status/1026935974931116032 ->

udevadm info -e | egrep 'ID_NET_NAME_(ONBOARD|PATH)'

is our friend to identify the device name network devices will get assigned, independent of their current naming, JFTR :)

mika avatar Aug 09 '18 07:08 mika

FTR, I'd like to get this integrated rather sooner than later. :)

mika avatar Oct 15 '19 13:10 mika

@jkirk, it would be awesome if you could rebase this.

paulmenzel avatar Jun 07 '21 20:06 paulmenzel