dracut: fails to copy udev rules to initramfs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



dracut 044 (and prior versions) only copy a handful of .rules files to 
the initramfs, the exact list of which is in 
/usr/lib/dracut/modules.d/95udev-rules/module-setup.sh. Copying only 
half of the files leads to a problem with regard to object naming
in certain systems.


Suppose there is a deliberately-placed file 
/etc/udev/rules.d/70-net.rules with:

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", 
ATTR{address}=="52:54:00:12:34:56", ATTR{type}=="1", KERNEL=="eth*", 
NAME="ex7"

(52:.. substituted as appropriate per system)

In case of a Thinkpad system (happens to have dracut 037):
* the e1000e.ko module is not copied to the initramfs
* e1000e.ko gets loaded after switching to real root
* in the real root, 70-net.rules is available and processed.
=> ex7 name

In case of a QEMU system (with dracut 044):
* the virtio_net.ko module is copied to the initramfs
* virtio_net.ko gets loaded by initramfs udev
* no 70-net.rules inside initramfs, default net_id naming comes in.
=> ens3 name

Why is dracut copying virtio_net.ko? I have no idea, it does not tell by 
default. Keeping in mind that there are also scenarios with root-on-NFS 
and such, the presence of NIC modules inside initramfs has to be taken 
into account, and with that, this leads me to lean in the direction that 
dracut ought to copy all .rules files, in particular those from /etc.

Counterarguments?
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux