I was struggling with this for quite some time and played around using
netplan.io and not using it. I figured out that you need to run "update-
initramfs -u" to make settings persist reboots in
"/etc/systemd/network/" when not using netplan.io.

But netplan.io saves the configuration in "/run/systemd/network/". Here
the update of initramfs does not make any difference and on boot the
network set-up fails to rename the interfaces as configured with all
consequences for the system.

To me it appears that "update-initramfs" needs to include the generated
configuration from netplan.io to get the network configuration correct
on reboot.

The following workaround does the job for me after every configuration
change in netplan.io:

1. netplan apply
2. rm /etc/systemd/network/10-netplan-*.link
3. cp /run/systemd/network/10-netplan-*.link /etc/systemd/network/
4. update-initramfs -u

Now the generated link files are found by update-initrd. Never the less
there should be a consistent solution.

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

Title:
  systemd-networkd not renaming devices on boot

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

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

Reply via email to