ethernet defaults for unconnected device are wrong
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
subiquity |
New
|
Undecided
|
Unassigned |
Bug Description
with the backport of the latest netplan to xenial you can now use the wlan and ethernet interfaces in subiquity on a pi3 (before the bind/unbind cycle broke wlan and you were forced to use ethernet in the first boot setup (and re-configure for wlan later)).
now, when doing the first-boot configuration for wlan only and not touching the ethernet defaults in console-conf at all (and not having any cable connected) i end up with:
ogra@pi3:~$ sudo cat /etc/netplan/
# This is the network config written by 'console_conf'
network:
ethernets:
eth0:
addresses: []
dhcp4: true
version: 2
wifis:
wlan0:
access-
addresses: []
dhcp4: true
this setup (with no cable connected) causes a 2min timeout of the systemd-
to avoid this you actually have to explicitly disable the dhcp settings of the ethernet device in console-conf, not touching eth0 and only setting up wlan0 will leave the ethernet device configured for dhcp, even though there was never any cable connected...
subiquity should check the link state before bringing up the network configuration UI and not default to configure eth0 for dhcp if there is no cable connected ... or alternatively simply not default to having dhcp enabled on interfaces the user never touched during system configuration.
affects: | subiquity (Ubuntu) → subiquity |
Makes sense I think, although, what is blocking on systemd- networkd- wait-online? I think it's behaviour of waiting on all interfaces is pretty unhelpful, but even given that, an Ubuntu core system shouldn't block for 2 minutes on boot if it is not connected to the internet...