Bug#816384: systemd: Systemd tries to rename ppp interface when .link files present for existing NICs

Michael Biebl email at michaelbiebl.de
Mon Dec 18 00:23:18 GMT 2017


On Tue, 20 Dec 2016 15:02:53 +0300 Vladimir K <pzs-fs at yandex.ru> wrote:
> I've tested it again.
> Removed 70-persistent-net.rules, created two units in /etc/systemd/network:
> 10-lan1.link:
>    [Match]
>    MACAddress=xx:xx:xx:xx:xx:xx
>    [Link]
>    Name=lan1
> 
> 10-wan0.link:
>    [Match]
>    MACAddress=yy:yy:yy:yy:yy:yy
>    [Link]
>    Name=wan0
> 
> (Apparently MAC values in quotes are invalid).
> After reboot I got this in journal:
> 
>    kernel: lan1: renamed from lo
>    kernel: r8169 0000:04:00.0 rename2: renamed from eth0
>    kernel: 8139too 0000:05:00.0 rename3: renamed from eth1
>    kernel: ath9k 0000:05:06.0 rename4: renamed from wlan0
>    ...
>    systemd-udevd[308]: error changing net interface name 'wlan0' to 'lan1': File exists
>    systemd-udevd[308]: could not rename interface '4' from 'wlan0' to 'lan1': File exists
> 
> It renamed lo to lan1, then refused to rename the correct interface to lan1 and totally ignored the interface that should be renamed to wan0.
> Physical interfaces remained with names: rename2, rename3, rename4.


Please make sure to update your initramfs (via update-initramfs -u).
Those link and udev rules files are embedded in the initramfs, so you
need to ensure it is rebuilt.

Can you please report back what happens if you do that?

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/attachments/20171218/349ffc89/attachment.sig>


More information about the Pkg-systemd-maintainers mailing list