omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Secure Boot lockdown in linux-omarchy 1:7.3.6-8 blocks nvidia-open-dkms on machines 1793685083 skipped for having a second kernel

Open rilesc555 opened this issue 1 day ago • 2 comments

What happened

After updating to linux-omarchy 1:7.3.6-8 (here -10), the NVIDIA driver no longer loads on this machine with Secure Boot on. The dGPU-wired outputs vanish, so the external monitor goes dark and only card1-eDP-1 exists.

The machine was never moved to the prebuilt linux-omarchy-nvidia-open. It is still on Arch's nvidia-open-dkms, whose modules are signed with the local DKMS key. Since the lockdown in omacom/omarchy-pkgs#4344, that key is no longer trusted:

Kernel is locked down from EFI Secure Boot mode; see man kernel_lockdown.7
Lockdown: modprobe: unsigned module loading is restricted; see man kernel_lockdown.7   (×15)
$ lsmod | grep nvidia          -> (nothing)
$ modinfo -F signer nvidia     -> DKMS module signing key
$ cat /sys/kernel/security/lockdown -> none [integrity] confidentiality
$ dkms status                  -> nvidia/620.73.04, 7.3.6-10-omarchy, x86_64: installed

Why the machine was still on DKMS

It's the result of two of Omarchy's own migrations:

  1. 1789325478 (Install the Omarchy kernel) added linux-omarchy and deliberately kept the original linux kernel as a recovery fallback. Ran here 2026-09-16.
  2. 1793685083 (#17409, Switch NVIDIA machines on linux-omarchy from DKMS to prebuilt modules) only acts when linux-omarchy is the only kernel:
    [[ $(cat /usr/lib/modules/*/pkgbase 2>/dev/null | sort -u) == "linux-omarchy" ]]
    
    Because of step 1, pkgbase is linux + linux-omarchy, so it exited without switching. Ran here 2026-11-29; it's marked done.

The comment in 1793685083 says such a machine "stays on DKMS". That was a working fallback until the lockdown kernel. With Secure Boot on, DKMS can't load at all now, so every upgraded install that took the kernel migration and has an NVIDIA GPU and Secure Boot loses the driver on reboot. Because the migration is already marked done, nothing will retry it.

The new 580xx migration from #21228 (1796165559) has the same single-kernel condition, so dual-kernel 580xx machines will hit the same wall.

Expected

On linux-omarchy with Secure Boot on, the NVIDIA driver keeps loading after the update. Either the machine is moved to the prebuilt linux-omarchy-nvidia-open (which Provides: nvidia-open and Conflicts: nvidia-open-dkms), or the update refuses/warns before installing a lockdown kernel that would leave a DKMS-only GPU driver unloadable.

Steps to reproduce

  1. An older install on Arch linux + nvidia-open-dkms (Turing or newer GPU) that took migration 1789325478, so linux and linux-omarchy are both installed.
  2. Migration 1793685083 runs and skips the machine (two kernels).
  3. Turn Secure Boot on (here with sbctl, "Secure Boot: enabled (user)").
  4. omarchy update to linux-omarchy >= 1:7.3.6-8 and reboot into it.
  5. The NVIDIA modules are refused, and external monitors on the dGPU ports disappear.

The plain linux (7.3.6-arch1-2) kernel still loads the DKMS module, since it doesn't enable this lockdown.

Possible directions (not a patch)

  • A follow-up migration that switches nvidia-open-dkms to linux-omarchy-nvidia-open whenever linux-omarchy is installed, even beside other kernels. DKMS would remain only for those other kernels, which the conflict currently prevents, so this may need a provides/coexistence change in the package.
  • Or a pre-reboot check in omarchy update: if Secure Boot is on, the next boot kernel is a lockdown linux-omarchy, and an installed *-dkms module is signed only by the DKMS key, warn the user instead of letting the driver vanish silently.

System

  • ThinkPad P1 Gen 6, Intel i7-13700H, Intel Iris Xe + NVIDIA RTX A1000 6GB Laptop GPU (GA107GLM, 10de:25bc, GSP)
  • Omarchy 4.6.0rc3-1
  • linux-omarchy 1:7.3.6-10 (CONFIG_LOCK_DOWN_IN_EFI_SECURE_BOOT=y, # CONFIG_INTEGRITY_MACHINE_KEYRING is not set, CONFIG_SECONDARY_TRUSTED_KEYRING_SIGNED_BY_BUILTIN=y), no lockdown= on the cmdline
  • linux 7.3.6.arch1-2 (installed by the original setup, kept by 1789325478)
  • nvidia-open-dkms 620.73.04-2, nvidia-utils 620.73.04-1
  • Limine boot, Secure Boot enabled (user mode)

Related: #21254 (same lockdown rejecting a DKMS module, r8152; there's no prebuilt package there, while here there is one but the migration skipped it), #19941 (DKMS signing on linux-omarchy-headers), #21228.

Filed by Claude Opus 5.5 via Claude Code.

rilesc555 avatar Dec 02 '26 15:12 rilesc555

I reproduced the migration skip on a disposable Omarchy worker with a dual-kernel fixture. With linux and linux-omarchy present, 1793685083 exits successfully without replacing DKMS, so the updater marks it complete. The kernel update enables lockdown under EFI Secure Boot, and your logs show the locally signed NVIDIA module being refused. Kernel package change

A package-database test confirmed that Pacman can replace DKMS with linux-omarchy-nvidia-open and Arch’s nvidia-open for your exact kernel versions. Both boot images and the external display still need a hardware check. The stock linux entry you tested is the immediate recovery option. The maintainer needs to decide whether to migrate systems with a matching driver for both kernels or warn before reboot when driver coverage cannot be preserved.

Codex High checked the source and ran the worker checks. Opus 5.5 High and muse-wonder via pi, thinking high reviewed the diagnosis from the same brief. Opus flagged that Arch’s prebuilt package can satisfy Pacman’s dependency even when its modules target a different stock kernel release.

omarchybot avatar Dec 02 '26 16:12 omarchybot

PR #21394 is already linked to this report. Its migration pairs linux-omarchy-nvidia-open with Arch’s nvidia-open for the two kernels you reported and defers the swap if the packages don’t match. The earlier worker package check confirmed both packages can install together for your versions. Arch’s module in that check had no signer, so both boot entries and the external display still need testing on the RTX A1000 with Secure Boot enabled.

GPT-6.2 Sol High in Codex checked the migration against your setup. Opus 5.5 High and muse-wonder via pi, thinking high reviewed the same evidence and agreed the package swap covers your configuration. Opus flagged that an installed module can still be refused by the recovery kernel.

omarchybot avatar Dec 02 '26 22:12 omarchybot