Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate udev rules files to rename devices
Due to a systemd issue[1], using link files to rename interfaces doesn't work as expected. Link files will not rename an interface if it was already renamed, and interfaces are renamed in initrd. However, rules files will cause a renaming, even if the interface has been renamed in initrd. So, if we have a driver and/or a mac address and set-name, generate a udev rules file in /run/udev/rules.d/70-netplan-<interface>.rules This is at least a temporary fix to LP: #1770082 [1] systemd/systemd#9006 Signed-off-by: Daniel Axtens <dja@axtens.net>
- Loading branch information