How to specify module load order in Fedora?

What is Fedora’s equivalent to Arch’s mkinitcpio for specifying module loading order?

The Arch wiki has instructions for a workaround to get a SD card reader working:

In order to get microsd (SDHCI) working, echo 'options sdhci debug_quirks2="0x8000"' > /etc/modprobe.d/sdhci.conf and change module load order MODULES=(sdhci sdhci_pci) in /etc/mkinitcpio.conf (line 7). Don’t forget to run mkinitcpio -p linux afterwards.

The important part is to get sdhci to be loaded with the quirk option before sdhci_pci. What is the “translation” of the above instructions for Fedora?

FYI, this is due to a longstanding bug which affects the ability of certain SD card readers to read certain SD cards:

https://bugzilla.kernel.org/show_bug.cgi?format=multiple&id=109231
https://www.0xf8.org/2016/01/workaround-for-broken-o2-micro-sd-card-reader-support-since-linux-kernel-version-4-1-8/

1 Like

To force regenerate all initramfs .

sudo dracut --regenerate-all --force

4 Likes

But how to specify the order of module load (as TS needs)?

1 Like

Mkinitcpio is an arch-specific tool, developed for ArchLinux, solution use dracut as @youssefmsourani point out

More Info

https://www.reddit.com/r/VFIO/comments/a8swkd/fedora_29_mkinitcpio_doesnt_exist_or/

Regards.,

This does not address how to specify the module loading order. However, after running the above, the workaround was applied successfully even after rebooting, so perhaps that’s all that was needed. Thanks!

2 Likes

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.