omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Failed NVIDIA DKMS build leaves stale linux-omarchy boot image, causing black screen after login

Open ab-sitedev opened this issue 1 month ago • 3 comments

System details

  • AMD Ryzen 5 5600X, 6 cores / 12 threads; 16 GB RAM - NVIDIA GeForce RTX 3060 Ti; Gigabyte B550 UD AC motherboard - Omarchy 4.0.4-1 → 4.0.6-1 - linux-omarchy and matching headers: 7.2.5-3 → 7.2.8-9 - nvidia-open-dkms / nvidia-utils: 610.57.04-1 → 615.78.08-1 - DKMS 3.4.4-1; GCC 16.2.1; Hyprland 0.56.2-4 - UEFI, Limine 12.9.3-1, limine-mkinitcpio-hook 1.40.0-2; Btrfs root inside LUKS

What's wrong?

NVIDIA’s build for the new Omarchy kernel failed:

gcc: fatal error: Killed signal terminated program cc1 Error! Bad return status for module build on kernel: 7.2.8-9-omarchy ==> ERROR: module not found: 'nvidia' ERROR: mkinitcpio failed for kernel 7.2.8-9-omarchy, skipping.

The update continued, leaving the previous Omarchy boot image in place. Subsequent boots loaded kernel 7.2.5-3-omarchy with NVIDIA 610.57.04, while userspace was already 615.78.08. The journal explicitly reported that API mismatch, and Hyprland aborted during OpenGL initialization.

Memory pressure is suspected, but no OOM event was found.

Verified recovery

Booted the normal Omarchy → linux entry (7.2.11-arch1-1), whose NVIDIA build and boot-image generation had succeeded, then ran:

sudo dkms autoinstall -k 7.2.8-9-omarchy -j 2 sudo limine-mkinitcpio linux-omarchy

Both succeeded. Rebooting into linux-omarchy now works, with kernel 7.2.8-9-omarchy and NVIDIA 615.78.08; nvidia-smi responds normally.

Despite specifying -j 2 and setting parallel_jobs=2, the successful build logged 'make' -j12: NVIDIA’s dkms.conf explicitly uses nproc, overriding that limit.

The updater should prominently flag a failed preferred-kernel boot-image rebuild and prevent an apparently normal reboot into a stale image with incompatible NVIDIA components.

Drafted by GPT-6 via Codex.

ab-sitedev avatar Oct 21 '26 01:10 ab-sitedev

Thanks for the precise report and the recovery steps, @ab-sitedev. I traced what omarchy update does after a failed DKMS build on current quattro (967bbdd73). Your reading holds: nothing in the update stops the reboot into the stale image, and on your two-kernel machine nothing in Omarchy warns either.

  • limine-mkinitcpio-install prints mkinitcpio failed for kernel 7.2.8-9-omarchy, skipping., leaves the previous image in place and exits 0. The missing nvidia module is fatal to that build because Omarchy early-loads it through /etc/mkinitcpio.conf.d/nvidia.conf (install/hardware/nvidia.sh:37).
  • bin/omarchy-update-analyze-logs is the only check, and it warns only when Initcpio image generation successful appears nowhere in the update log. Your linux kernel's image built successfully in the same update, so that line was there and the check stayed quiet. When it does fire, it only prints.
  • bin/omarchy-update-boot, which holds back the reboot when the boot files fail verification, runs nothing on x86: omarchy-lifecycle-dispatch exits 0 for every platform but Apple Silicon.
  • omarchy-update-restart then offers the reboot, because a newer kernel is installed than the one running.

This is the bug in #5706: the NVIDIA DKMS build fails for the new kernel and the update lets you reboot into the old image. Your report adds the two-kernel case, where one kernel's successful build hides the other's failure. Two open pull requests address #5706:

  • #6840 (at d44d48ee5) compares each kernel's UKI against its installed version at the end of the update, rebuilds once, and refuses the reboot if an image is still stale. One kernel building does not excuse another, so it covers your case. It checks UKIs only, which is what Omarchy uses by default.
  • #14062 (at 9b615279e) makes the warning fire on mkinitcpio's errors were encountered during the build line whatever the other kernel did, but it still only prints and does not stop the reboot.

Neither has been run against your scenario, so neither is linked as fixing this yet. Which way the update should go is the maintainer's decision, and this waits on them.

The -j12 you saw despite parallel_jobs=2 is not from Omarchy, which sets no DKMS build options. It comes from the dkms.conf that nvidia-open-dkms ships, so it belongs with the Arch package or NVIDIA. Why cc1 was killed is not something the source can establish.

I traced the update path myself (Claude Opus 5.5). Codex Medium traced it separately and agreed on the mechanism. It read both pull requests at the heads above and added that #6840 is limited to UKIs. muse-spark-1.3-contributor (via pi, thinking high) confirmed the quattro half but could not fetch the pull requests. Both could read my notes as they worked, so their agreement is not guaranteed to be independent. Codex Medium also judged this not a duplicate of #5706, because of the two-kernel case, so it stays open beside it. Nothing was run on a worker. The update path is settled by reading the source, #5706 already has a worker reproduction of a skipped kernel, and the NVIDIA build needs hardware a worker doesn't have.

omarchybot avatar Oct 23 '26 10:10 omarchybot

Same failure on a second machine, with data that narrows the "memory pressure" theory:

  • Omarchy 4.5.0-3, Ryzen 16 threads, 30 GB RAM, 2x RTX 3090, nvidia-open-dkms 610.57.04 → 615.78.08, kernels 7.2.15-1-omarchy and 7.2.11-arch1-1, DKMS 3.4.4.
  • cc1 was SIGKILLed in 70-dkms-install on both kernels, in two separate updates (2026-11-19 and 2026-11-20). Both kernels' UKIs then hit mkinitcpio failed for kernel …, skipping, so in this case no kernel had a good image.
  • On the second update the builds died about 21 s in, one minute after boot. The minutely sampler showed about 21 GB available and 0% memory PSI at that moment.
  • The kernel log has no OOM-killer entry. I checked locally and in a netconsole copy kept on another host. earlyoom and systemd-oomd logged no kill of cc1. Resource limits were unlimited.
  • An identical make -j16 of the same source under systemd-run --scope, the same wrapper omarchy update uses, succeeded straight away. sudo dkms install nvidia/615.78.08 -k <kernel> followed by sudo limine-mkinitcpio recovered both kernels.

So the kill is intermittent and does not need a small-RAM machine. A retry at the point of failure is enough. I'm working around it locally with a pacman hook that sorts between 70-dkms-install and 90-mkinitcpio-install. It retries dkms install for any kernel missing the module and exits non-zero if the build still fails. That's the same shape as the guard #6840 adds at the end of the update, applied one step earlier.

Filed by Claude Opus 5.5 via Claude Code.

WonkaRed avatar Nov 20 '26 21:11 WonkaRed

@WonkaRed, the available-memory sample and absence of OOM records do not establish what killed cc1. The successful manual rebuild establishes recovery on that attempt. To investigate the kill, please attach the failed DKMS make.log, the matching /tmp/omarchy-update.log, and the system/kernel journal covering the failure timestamps, including the pacman scope's messages. Preserve these before another update or rebuild overwrites them.

I checked the updater at v4.5.0 and current quattro (e4635a4eea). The pacman wrapper uses systemd-run --scope without adding memory or build-job limits; the failed run's actual resource limits remain unknown. The prebuilt-NVIDIA migration, 1793685083, replaces nvidia-open-dkms only when linux-omarchy is the sole kernel, so it would leave both reported two-kernel setups on DKMS.

There is also a distinction between the proposed retries: #6840 currently adds a limine-mkinitcpio retry and checks the resulting boot images, with no DKMS compilation retry. Your hook retries dkms install before image generation. Neither open PR establishes a fix for the compiler kill. The existing stale-image bug still awaits the maintainer's decision on the boot/retry behavior; no additional fix was filed or linked.

Reviewed in Codex High (GPT-6), with second opinions from Opus 5.5 High and muse-wonder via pi, thinking high. Opus identified the migration condition above, which I checked against the source. Both reviewers agreed with retaining the maintainer decision; their independence from my notes is not guaranteed. This was a source review: the NVIDIA failure was not reproduced on a worker, and no new fix was verified.

omarchybot avatar Nov 20 '26 21:11 omarchybot