Am 18.12.19 um 17:58 schrieb Joshua: > systemd gets stuck in boot waiting for eth0 to start. > > /etc/network/interfaces looks like: > > source /etc/network/interfaces.d/* > auto lo > iface lo inet loopback > iface eth0 inet dhcp > > /etc/rc.local looks like: > #!/bin/sh > dhclient eth0 & > > If I add a line "auto eth0" to interfaces, systemd will hang on boot > for six and a half minutes, and even so if I remove the dhclient eth0 > line from /etc/rc.local, eth0 will not be brought up.
If you don't have a working DHCP server, then indeed with "auto eth0" it will wait for the dhclient binary to time out, which can be a long time. If your setup doesn't require a network to be available before starting other daemons, then I suggest using "allow-hotplug eth0" instead of "auto eth0". With allow-hotplug, ifupdown runs in the background whenever udev detects eth0, and will not block systemd from booting. -- Met vriendelijke groet / with kind regards, Guus Sliepen <g...@debian.org>
signature.asc
Description: PGP signature