In the initramfs; if an ip= command exists in the kernel command-line, a
netplan configuration will be written. I would expect this is a
requirement anyway if you want to use nfsroot=.

I certainly don't expect this to have changed at all in the recent
updates; we've been writing a netplan configuration in /run for a while.
One change, however, might be a dropped patch in NetworkManager to take
into account further files written in /run/NetworkManager by netplan.

In short; the expected behavior is:
- boot off the network, initramfs configures network (via dhcp or an assigned 
IP via command-line)
- network config (dhcp or manual) is captured in /run/netplan/<interface>.yaml, 
so it's propagated to the running system after initramfs is done and we switch 
to the real root.
- networkd configures the network (well, keeps it up with the same config as in 
the initramfs). This part isn't selectable, but NetworkManager should 
explicitly ignore the interface as externally managed.

I think there is some further complication in that you're also writing
/etc/network/interfaces, but the config provided does not look at fault.

Please file a separate bug; include /run/netplan and /run/NetworkManager
after the system has booted, along with the contents of /var/log/syslog.
If possible, stop NetworkManager and restart it with
"/usr/sbin/NetworkManager --log-level=DEBUG -n" and include this debug
output.

To be clear, I don't think this would be a regression caused by the
netplan update. The only change is essentially to configure interfaces
as soon as they appear in yaml (even if no IP is configured), which
wouldn't cause a difference from the current initramfs behavior (where
the file is statically written and includes IP config).

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1763608

Title:
  Netplan ignores Interfaces without IP Addresses

To manage notifications about this bug go to:
https://bugs.launchpad.net/netplan/+bug/1763608/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to