=sys-kernel/dracut-033-r2 is installed on the system with USE flag device-mapper, and lvm, mdraid DRACUT_MODULES. # dracut --fstab -a "lvm mdraid" --lvmconf --mdadmconf --force /boot/initrd was the command line creating the initramfs. =sys-fs/udev-204 is also installed. During kernel boot, before mounting the real root filesystem the following can be seen: [ 1.763760] dracut: dracut-033-r2 [ 1.824429] systemd-udevd[1743]: starting version 204 [ 1.906158] systemd-udevd[1828]: renamed network interface eth0 to enp2s0 Predictable names are cool when a computer has more than one network interface, but not that useful otherwise (eth0 is quite predictable to me when there is only one interface). It would be nice if dracut would honor the existence /etc/udev/rules.d/80-net-name-slot.rules . Reproducible: Always
Dracut includes rules from /etc/udev/rules.d only in hostonly mode. So issue dracut command with --hostonly option, or add hostonly="yes" in dracut.conf/dracut.conf.d. But the best solution IMHO is to just add net.ifnames=0 to the kernel cmdline. This is supported since systemd/udev-199.
Did this change recently? I'm not sure which dracut version I was using before, but it did not try to change my network interfaces via udev.
(In reply to Zoltán Halassy from comment #2) > Did this change recently? I'm not sure which dracut version I was using > before, but it did not try to change my network interfaces via udev. This change was introduced in 033: http://git.kernel.org/cgit/boot/dracut/dracut.git/commit/?id=ace51ef520090e214bac2f6d98f772da0e36376a
I have a patch fixing this issue and I'm going to send it upstream soon.
I've updated my live ebuild, can you test it? layman -a aidecoe layman -S Unmask dracut-9999 and emerge it. It looks that 037 is coming soon, so there's no point in backporting these patches to 036.
Harald refused my patch: http://thread.gmane.org/gmane.linux.kernel.initramfs/3665/focus=3666 So we can close this bug again as wontfix. :)
Please do not CC people yourself.
Actually the solution seems pretty simple: > I would rather let them use the kernel cmdline switch: > net.ifnames=0 RESO WFM applies better here. :-)