Use OriginalName instead of Name in systemd.link

Name option is not a valid one for systemd.link [1] while it is for systemd.network [2]
though having same meaning.

This basically resulted in link files being just ignored by udevadm
and were not loaded properly after reboot

[1] https://www.freedesktop.org/software/systemd/man/latest/systemd.link.html#OriginalName=
[2] https://www.freedesktop.org/software/systemd/man/latest/systemd.network.html#Name=

Closes-Bug: #1896589
Change-Id: If82946b7f5ad3c618606110576c586632f9bbd08
This commit is contained in:
Dmitriy Rabotyagov 2024-02-02 12:16:14 +01:00 committed by Dmitriy Rabotyagov
parent 70442c5efb
commit b9c7d79089
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
# {{ ansible_managed }}
[Match]
Name={{ item.1.interface }}
OriginalName={{ item.1.interface }}
[Link]
{% if item.1.mtu is defined %}