Repository navigation
Conversation
…o display Co-Authored-By: Claude Opus 5.5 <[email protected]>
[Medium impact] The PR appears safe to merge; both previous findings are addressed and no new blocking issue was found. SummaryThe PR removes early NVIDIA modules and
|
…OURCE mkinitcpio appends the drop-ins to mkinitcpio.conf and sources one temporary file, so BASH_SOURCE never pointed at /etc/mkinitcpio.conf.d. Walk the directory in mkinitcpio's order, cover the Surface case with the composed test, and keep the migration pending when the config fails to evaluate. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A data point for the negative case, a hybrid with HDMI wired to the dGPU: ASUS ROG Zephyrus G16 GU605CP, Arc 140T The NVIDIA card has connectors here, so by the PR's checks it keeps the nvidia modules and kms, as the description says: Note The reads the check does ( For what it's worth, I've stripped the four nvidia modules from |
|
Positive case on real hardware, checked without rebuilding anything: IdeaPad S540-15IML. Intel Comet Lake-U UHD ( I sourced
That local drop-in was a cruder manual version of this change. My normal UKI is 54.8 MB, compared with 330.8 MB for the untouched LTS one (different kernel, so it's only a rough comparison). The panel comes up on i915 and the LUKS prompt works. Boot time dropped too, but I changed the Limine timeout at the same time, so I can't attribute it to the size. Filed by Claude Opus 5.5 via Claude Code. |
Follow-up to #6790 / #6791, which dropped
kmson NVIDIA-only machines and deliberately left hybrids alone.On a hybrid laptop where the panel and every port are wired to the iGPU,
nvidia.confstill early-loads all four nvidia modules, andkmsstill lets autodetect add nouveau. Both bring their firmware, so the initramfs carries the nvidia module, nouveau and the GSP blobs for Turing and Ampere, none of which can run before the root filesystem is up on these machines. On my laptop (i5-1035G1 + MX350, nvidia-580xx-dkms, Limine + UKI + LUKS) that is 270 MB of a 301 MB initramfs. Limine reads and hashes the whole UKI on every boot, and the history copies kept for snapshots fill/bootfast.Change
omarchy_hooks.confgets a second case next to the NVIDIA-only one. Whennvidia_drmis early-loaded and the machine is hybrid, it removesnvidia*fromMODULES, adds the iGPU's driver module, and dropskms. NVIDIA then loads from the root filesystem like any other module; itsmodprobe.doptions still apply.It only fires when every signal agrees, and anything inconclusive keeps today's behaviour:
nvidia_drmhas bound it) and that card has no connectors;boot_vga;driver/modulein sysfs), which is the module added toMODULES(i915,xe,amdgpu);omarchy_hooks.confresetsMODULESoutright.surface_device_modules.confdoes, and on a Surface Book it would strip the iGPU driver afterkmswas gone, leaving the LUKS prompt without early KMS. mkinitcpio sources all drop-ins as one concatenated file, so the conf walks/etc/mkinitcpio.conf.d(overridable withOMARCHY_MKINITCPIO_CONF_DIR) in mkinitcpio's order rather than looking beside itself.A laptop with HDMI wired to the dGPU has a connector on the NVIDIA card and keeps everything, so an external monitor still shows the LUKS prompt.
A migration rebuilds the initramfs once where the conditional changes the result, following
1786605598.sh.Testing
test/shell.d/nvidia-kms-hook-test.sh: 22/22 pass. The 13 new cases cover offload-only with Intel and AMD iGPUs, an output on NVIDIA, NVIDIA asboot_vga, NVIDIA without a DRM card, an iGPU with no bound driver, an unreadable device,MODULESwithoutnvidia_drm, and a later drop-in that resets or appends toMODULES. Against the currentomarchy_hooks.confthe new cases fail.test/shell.d/mkinitcpio-hooks-test.sh: 45/45 pass, including two new composed cases: an offload-only hybrid getsi915and loseskms, an offload-only Surface Book keepskmsand the SurfaceMODULES. The Surface case fails on the first commit of this PR.test/shell.d/hardware-quirks-test.shpasses.boot_vga), kernel 7.2.8-10-omarchy, nvidia-580xx-dkms 580.196.07:mkinitcpioon the installed drop-ins concatenated the way mkinitcpio does it: 301 MB → 31 MB. nouveau and all nvidia modules gone;i915,dm-cryptand Plymouth still in the image. With a Surface-styleMODULES=(…)drop-in added,kmsruns and the image matches current behaviour.loadertime insystemd-analyze9.8 s → 2.3 s,/bootusage 1.3 GB → 1.0 GB. Plymouth LUKS prompt unchanged,nvidiaandnvidia_drmload after switch-root, CUDA works.sudo: rebuilds with the new conf, no-ops with the old conf and withoutnvidia.conf. A config that fails to evaluate exits non-zero and stays pending.🤖 Generated with Claude Code