{"id":3070,"date":"2022-11-18T08:15:01","date_gmt":"2022-11-18T16:15:01","guid":{"rendered":"https:\/\/rglinuxtech.com\/?p=3070"},"modified":"2022-11-19T09:20:05","modified_gmt":"2022-11-19T17:20:05","slug":"kernel-boot-bizarre-dracut-problem-bogus-apple-modules-added-fails","status":"publish","type":"post","link":"https:\/\/rglinuxtech.com\/?p=3070","title":{"rendered":"Kernel\/Boot &#8211; Bizarre Dracut problem &#8211; Bogus Apple Modules Added, Fails &#8211; Cause Found.."},"content":{"rendered":"<p>During update of the kernel to 6.0.9, on my main dual-xeon Fedora 37 system, I found the following error displayed:<\/p>\n<p><span style=\"font-family: Courier New, Courier, monospace;\"><strong>&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>dracut-install: Failed to find module &#8216;apple_mailbox&#8217;<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>dracut: FAILED: \/usr\/lib\/dracut\/dracut-install -D \/var\/tmp\/dracut.SGbOUU\/initramfs &#8211;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<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..<\/strong><\/span><\/p>\n<p>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..<\/p>\n<p>I then found the following:<\/p>\n<p>On &#8216;good&#8217; system &#8211; \/usr\/lib\/dracut:<br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>$ grep apple *\/*\/*<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>$ (nothing found..)<\/strong><\/span><\/p>\n<p>On &#8216;bad&#8217; system &#8211; \/usr\/lib\/dracut:<br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">$ grep apple *\/*\/*<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">modules.d\/99asahi-firmware\/load-asahi-firmware.sh:modprobe apple-mailbox<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">modules.d\/99asahi-firmware\/load-asahi-firmware.sh:modprobe nvme-apple<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">modules.d\/99asahi-firmware\/load-asahi-firmware.sh: [ -e \/sys\/bus\/platform\/drivers\/nvme-apple\/*.nvme\/nvme\/nvme*\/nvme*n1\/ ] &amp;&amp; break<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">modules.d\/99asahi-firmware\/load-asahi-firmware.sh:if [ ! -e \/sys\/bus\/platform\/drivers\/nvme-apple\/*.nvme\/nvme\/nvme*\/nvme*n1\/ ]; then<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">modules.d\/99asahi-firmware\/module-setup.sh: instmods apple-mailbox nvme-apple<\/span><\/strong><\/p>\n<p>This suggesting that the &#8216;addition&#8217; of the asahi info was relatively recent:<\/p>\n<p><a href=\"https:\/\/github.com\/AsahiLinux\/asahi-scripts\/pull\/9\" target=\"_blank\" rel=\"noopener\"><span style=\"font-family: Courier New, Courier, monospace;\">https:\/\/github.com\/AsahiLinux\/asahi-scripts\/pull\/9<\/span><\/a><\/p>\n<p>The fix, is to remove <strong>99asahi-firmware<\/strong> in <span style=\"font-family: Courier New, Courier, monospace;\"><strong>\/usr\/lib\/dracut\/modules.d<\/strong><\/span>, and <strong>10-asahi.conf<\/strong> in <span style=\"font-family: Courier New, Courier, monospace;\"><strong>\/usr\/lib\/dracut.conf.d<\/strong><\/span>, and then dracut behaves correctly..<\/p>\n<p>It remains to be seen, if the problem occurs again&#8230;<\/p>\n<p><strong><em>Update:<\/em><\/strong><\/p>\n<p>Seems the F37 install pulled in asahi\/dracut, for some reason:<br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">$ rpm -qa |grep asahi<\/span><\/strong><br \/>\n<strong><span style=\"font-family: Courier New, Courier, monospace;\">dracut-asahi-20221027-6.fc37.noarch<\/span><\/strong><\/p>\n<p>So..<br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong># dnf erase dracut-asahi<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>Dependencies resolved.<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>=========================================================================================<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>Package Architecture Version Repository Size<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>=========================================================================================<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>Removing:<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>dracut-asahi noarch 20221027-6.fc37 @updates 4.2 k<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>Removing unused dependencies:<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>linux-firmware-vendor noarch 20221027-6.fc37 @updates 1.1 k<\/strong><\/span><\/p>\n<p><span style=\"font-family: Courier New, Courier, monospace;\"><strong>Transaction Summary<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>=========================================================================================<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>Remove 2 Packages<\/strong><\/span><br \/>\n<span style=\"font-family: Courier New, Courier, monospace;\"><strong>&#8230;etc&#8230;<\/strong><\/span><\/p>\n<p><em>Robert Gadsdon.\u00a0 November 19th 2022..<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>During update of the kernel to 6.0.9, on my main dual-xeon Fedora 37 system, I found the following error displayed: &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230; dracut-install: Failed to find module &#8216;apple_mailbox&#8217; dracut: FAILED: \/usr\/lib\/dracut\/dracut-install -D \/var\/tmp\/dracut.SGbOUU\/initramfs &#8211;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 <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/rglinuxtech.com\/?p=3070\"><span class=\"more-msg\">Continue reading &rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"footnotes":""},"categories":[2512,10,1238,11,14,15,19,1535],"tags":[2515,2514,1377,143,161,2513],"class_list":["post-3070","post","type-post","status-publish","format-standard","hentry","category-dracut","category-fedora","category-fix","category-hacks","category-kernel","category-linux-2","category-opinion","category-quirks","tag-apple-modules","tag-asahi-firmware","tag-dracut","tag-error","tag-fix","tag-kernel-6-0-9"],"_links":{"self":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/3070","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3070"}],"version-history":[{"count":4,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/3070\/revisions"}],"predecessor-version":[{"id":3074,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=\/wp\/v2\/posts\/3070\/revisions\/3074"}],"wp:attachment":[{"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3070"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3070"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rglinuxtech.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3070"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}