Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 576292

Summary: dracut-044 with -systemd USE flag breaks persistent network interface naming
Product: Gentoo Linux Reporter: Akos Szalkai <szalkai>
Component: [OLD] Core systemAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: major CC: szalkai
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge info

Description Akos Szalkai 2016-03-02 20:59:51 UTC
In dracut-044 the /lib/systemd/network/99-default.link is only copied to the initramfs if the systemd dracut module is loaded.  But with this file missing, udevd will not rename the network interfaces to their persistent names.

The problem is in lines 59--62 of the file /usr/lib/dracut/modules.d/95udev-rules/module-setup.sh :

if dracut_module_included "systemd"; then
    inst_multiple -o ${systemdutildir}/network/*.link
    [[ $hostonly ]] && inst_multiple -H -o /etc/systemd/network/*.link
fi

and the culprit is this patch in upstream: https://bugzilla.redhat.com/show_bug.cgi?id=1282010
Comment 1 Akos Szalkai 2016-03-02 21:09:25 UTC
Created attachment 427250 [details]
emerge info

I'm not sure it's relevant for this issue, but here's the emerge --info output.

The udev version is the stable udev-225 and /etc/systemd/network is empty.
Comment 2 Akos Szalkai 2016-03-02 21:37:04 UTC
Sorry, the real cause were a couple of stray /etc/udev/rules.d files.  I set the status to RESOLVED INVALID.