From 83ed822e87ffedf821cc90c5c45b0a56b832ce28 Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Thu, 30 Jul 2026 10:46:48 -0400 Subject: [PATCH] dracut: asahi-firmware: Configure the /lib/firmware/vendor path This enables the running kernel to know it can load firmware from the path we install firmware data to after copying the staged data from the ESP location (which itself was installed there by the installer). Signed-off-by: Neal Gompa --- .../modules.d/99asahi-firmware/install-asahi-firmware.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dracut/modules.d/99asahi-firmware/install-asahi-firmware.sh b/dracut/modules.d/99asahi-firmware/install-asahi-firmware.sh index f0db4f7..90ff095 100755 --- a/dracut/modules.d/99asahi-firmware/install-asahi-firmware.sh +++ b/dracut/modules.d/99asahi-firmware/install-asahi-firmware.sh @@ -4,9 +4,18 @@ type getarg > /dev/null 2>&1 || . /lib/dracut-lib.sh info ":: Asahi: Installing vendor firmware to root filesystem..." + if [ ! -d /sysroot/lib/firmware/vendor ]; then warn ":: Asahi: Vendor firmware directory missing on the root filesystem!" return 1 fi + +if [ -e /sys/module/firmware_class/parameters/path ]; then + echo -n /lib/firmware/vendor > /sys/module/firmware_class/parameters/path +else + warn ":: Asahi: Vendor firmware directory unable to be configured!" + return 1 +fi + mount -t tmpfs -o mode=0755 vendorfw /sysroot/lib/firmware/vendor cp -a /vendorfw/* /vendorfw/.vendorfw.manifest /sysroot/lib/firmware/vendor