Re: calling request_firmware() from module init will not work with recent/future udev versions
From: Kay Sievers <hidden>
Date: 2012-07-24 17:51:20
Also in:
linux-wireless
From: Kay Sievers <hidden>
Date: 2012-07-24 17:51:20
Also in:
linux-wireless
On Tue, Jul 24, 2012 at 4:32 PM, Tom Gundersen [off-list ref] wrote:
On Tue, Jul 24, 2012 at 4:16 PM, Johannes Berg [off-list ref] wrote:quoted
quoted
The logic to tell udev that it runs in the initramfs could easily be implemented by other initramfs tools than dracut, but they usually do not really follow what we do here, so this might for now only work on recent systems using dracut.Ok, too bad there wasn't a generic way, but at least there's a way now :-)If I understand the code correctly, it should be enough to put a file /etc/initrd-release in the initramfs for udev to do the right thing. But please correct me if I'm wrong Kay.
The current check in udev/systemd is the existence of: /etc/initrd-release and the / filesystem must be tmpfs/ramfs to get the environment recognized as 'initrd'. Kay