Comment 22 for bug 1770082

Revision history for this message
Stefan Beckers privat (stefan-beckers) wrote :

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.