Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 576292 - dracut-044 with -systemd USE flag breaks persistent network interface naming
Summary: dracut-044 with -systemd USE flag breaks persistent network interface naming
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-02 20:59 UTC by Akos Szalkai
Modified: 2016-03-02 21:37 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge info (emerge_info.txt,5.44 KB, text/plain)
2016-03-02 21:09 UTC, Akos Szalkai
Details

Note You need to log in before you can comment on or make changes to this bug.
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.