Kernel/Boot – Bizarre Dracut problem – Bogus Apple Modules Added, Fails – Cause Found..
During update of the kernel to 6.0.9, on my main dual-xeon Fedora 37 system, I found the following error displayed:
………………………
dracut-install: Failed to find module ‘apple_mailbox’
dracut: FAILED: /usr/lib/dracut/dracut-install -D /var/tmp/dracut.SGbOUU/initramfs –kerneldir /lib/modules/6.0.9/ -m apple_mailbox nvme_apple pinctrl-apple-gpio macsmc macsmc-rtkit i2c-apple tps6598x apple-dart dwc3 dwc3-of-simple xhci-pci pcie-apple gpio_macsmc spi-apple spi-hid-apple spi-hid-apple-of rtc-macsmc simple-mfd-spmi spmi-apple-controller nvmem_spmi_mfd apple-dockchannel dockchannel-hid apple-rtkit-helper
……………………..
As I (obviously) have no apple-specific hardware on my system, I re-ran this with the previous known/good kernel 6.0.8, and now got the same error..
I then found the following:
On ‘good’ system – /usr/lib/dracut:
$ grep apple */*/*
$ (nothing found..)
On ‘bad’ system – /usr/lib/dracut:
$ grep apple */*/*
modules.d/99asahi-firmware/load-asahi-firmware.sh:modprobe apple-mailbox
modules.d/99asahi-firmware/load-asahi-firmware.sh:modprobe nvme-apple
modules.d/99asahi-firmware/load-asahi-firmware.sh: [ -e /sys/bus/platform/drivers/nvme-apple/*.nvme/nvme/nvme*/nvme*n1/ ] && break
modules.d/99asahi-firmware/load-asahi-firmware.sh:if [ ! -e /sys/bus/platform/drivers/nvme-apple/*.nvme/nvme/nvme*/nvme*n1/ ]; then
modules.d/99asahi-firmware/module-setup.sh: instmods apple-mailbox nvme-apple
This suggesting that the ‘addition’ of the asahi info was relatively recent:
https://github.com/AsahiLinux/asahi-scripts/pull/9
The fix, is to remove 99asahi-firmware in /usr/lib/dracut/modules.d, and 10-asahi.conf in /usr/lib/dracut.conf.d, and then dracut behaves correctly..
It remains to be seen, if the problem occurs again…
Update:
Seems the F37 install pulled in asahi/dracut, for some reason:
$ rpm -qa |grep asahi
dracut-asahi-20221027-6.fc37.noarch
So..
# dnf erase dracut-asahi
Dependencies resolved.
=========================================================================================
Package Architecture Version Repository Size
=========================================================================================
Removing:
dracut-asahi noarch 20221027-6.fc37 @updates 4.2 k
Removing unused dependencies:
linux-firmware-vendor noarch 20221027-6.fc37 @updates 1.1 k
Transaction Summary
=========================================================================================
Remove 2 Packages
…etc…
Robert Gadsdon. November 19th 2022..
I have the same problem after update to fedora 37. Thanks
“`
dnf erase dracut-asahi
“`
solved my problem.
Thanks a lot for sharing, this saved my day!
Seems to apply to F38 also – but not 100% sure, because I upgraded from F37.