Menu ▾ ▴

#32 initramfs: kriss-kms, the kms hook without nouveau's GSP firmware

open
nobody
None
2026-11-16
2026-11-16
Anonymous
No

Originally created by: idiazraz

Found on the ASUS X510UNR (i5-8250U, UHD 620 + MX150 on nouveau).

Problem

/boot/initramfs-linux-kriss.img was 130.6 MB. mkinitcpio's kms hook adds nouveau, and with it nouveau's whole firmware list. That puts about 105 MB of GSP blobs for Turing, Ampere and Blackwell (ga102/gsp/gsp-570.144.bin.zst alone is 52 MB) into the uncompressed early CPIO, which was 113 MiB. Limine reads all of it on every boot. systemd-analyze showed 9.463s (loader), 5 s of which is the menu timeout.

KrissOS gives Turing and newer the NVIDIA driver, so nouveau only ever drives older cards, and those need no GSP firmware.

Change

  • kriss-settings: a new kriss-kms install hook. It adds the same modules as kms, minus nouveau, which still loads from the root filesystem a moment later. Bumped to 0.3.1.
  • installer/lib/configure: writes kriss-kms in place of kms. With nvidia-utils it still leaves early KMS out, as before.

Tested

On the laptop, without root: mkinitcpio -c <installer's HOOKS with kriss-kms> -D <hook dir> -g /tmp/kk/out.img

  • Image size: 130.6 MB → 18.7 MB. Early CPIO: 113 MiB → 6.28 MiB.
  • No nvidia or nouveau files left. GenuineIntel.bin, i915.ko and overlay.ko (for kriss-snapshot) are still there.
  • Booted on the laptop with the hook in /etc/initcpio/install. systemd-analyze reports 5.425s (firmware) + 2.348s (loader) + 2.638s (kernel) + 3.221s (userspace) = 13.634s; before the change it was 9.463s (loader). nouveau loads from the root filesystem, the MX150 runtime-suspends, the KrissOS Shell starts and no units fail.

Notes

  • PR [#28] bumps kriss-settings to 0.4.0, so whichever merges second takes the higher version.
  • Existing installs keep kms until someone edits it: sudo sed -i 's/ kms / kriss-kms /' /etc/mkinitcpio.conf.d/kriss.conf && sudo mkinitcpio -P

Related

Tickets: #28

Discussion


Log in to post a comment.