omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Omarchy 3.4.0 breaks boot with LUKS encryption - emergency mode with locked root

Open folone opened this issue 9 months ago • 9 comments

System details

Omarchy 3.4.0 (upgrading from 3.3.3)

What's wrong?

After upgrading to Omarchy 3.4.0, the system fails to boot and drops into emergency mode with a locked root filesystem. The boot process appears to hang at LUKS unlock, preventing access to the encrypted root partition.

Environment:

  • Omarchy Version: 3.4.0 (upgrading from 3.3.3)
  • Kernel: 6.18.9-arch1-2 (after upgrade), 6.18.7-arch1-1 (working)
  • Disk Layout: NVMe with GPT, LUKS encryption, Btrfs subvolumes (@, @home, @pkg, @log)
  • Previous Working State: Omarchy 3.3.3 with kernel 6.18.7

What fixed this for me:

  • Boot from a working snapshot (this ended up being second oldest snapshot for me)
  • Revert hooks to HOOKS=(base udev plymouth autodetect microcode modconf kms keyboard keymap consolefont block encrypt filesystems fsck)
  • Revert linux to 6.18.7
  • Rebuilding UKI with sudo mkinitcpio -p linux

Any recommendations for how to realign my system back with the upstream, and still have the working boot process?

folone avatar Feb 27 '26 14:02 folone

cc @ryanrhughes

dhh avatar Feb 27 '26 16:02 dhh

Same issue here. Fixed it by manually decrypting and mounting my LUKS volumes to chroot into the broken system.

From there I added MODULES=(btrfs md_mod raid0 dm_crypt) to /etc/mkinitcpio.conf and rebuilt the initramfs.

rubas avatar Feb 28 '26 18:02 rubas

Confirmed fix path from a real 3.4.x failure on NVIDIA Pascal (GTX 1070 Ti), LUKS + Btrfs + Limine.

What failed initially:

  • nvidia-580xx-utils was installed, but nvidia-580xx-dkms was missing.
  • During kernel/initramfs rebuild this caused module not found: nvidia* and unstable update/boot behavior.

What fixed it:

  1. omarchy-pkg-install nvidia-580xx-dkms
  2. Ensure MODULES=(nvidia nvidia_modeset nvidia_uvm nvidia_drm) in /etc/mkinitcpio.conf
  3. Rebuild UKI via Limine path (limine-mkinitcpio / prompted from mkinitcpio -P)
  4. Run omarchy-update

After this:

  • DKMS built cleanly for current kernel
  • UKI regenerated successfully
  • limine.conf updated
  • update proceeded normally

Suggested enhancement in omarchy-update to prevent recurrence:

  • If NVIDIA utils are present, auto-detect missing matching *-dkms package and install/prompt.
  • Ensure required NVIDIA modules are present in MODULES=() (backup before edit).
  • Force limine-mkinitcpio after kernel changes.

This seems to match recurring reports in this family (#4781/#4192 pattern), and should be a low-risk guardrail for Pascal-era systems.

Hardware profile from this case:

  • Intel i7-5930K
  • ASUS X99-E
  • NVIDIA GTX 1070 Ti (Pascal)
  • LUKS encrypted root, Btrfs, Limine

lukejmorrison avatar Mar 01 '26 00:03 lukejmorrison

Opened dedicated enhancement tracker for the proposed guardrail: #4827\n\nLink: https://github.com/basecamp/omarchy/issues/4827

lukejmorrison avatar Mar 01 '26 00:03 lukejmorrison

For those who have encountered this issue; did you not receive an error on update?

We have a check specifically to ensure that mkinicpio runs successfully (if it builds) and this appears to be exactly what happens when it fails and you reboot without fixing whatever the issue is. Thus far, the solution for everyone has effectively been to just trigger a rebuild.

The nvidia-580xx-utils and nvidia-580xx-dkms packages are installed at the exact same time so while it is certainly possible something could go wrong there, I'm not sure it's worth an omni-present check for that. @lukejmorrison do you have any idea how you wound up without one?

Modules also go in /etc/mkinitcpio.conf.d/nvidia.conf so they're modularized and dynamically added to any others you may have. No need to add those to /etc/mkinitcpio.conf.

ryanrhughes avatar Mar 01 '26 05:03 ryanrhughes

I don't recall getting any errors during the update. That said, I wonder whether an earlier update that didn't trigger a reboot broke the boot process for me, since the two older snapshot failed to boot in the same way.

folone avatar Mar 01 '26 08:03 folone

There was no errors on update. I do not now much about linux but it took some to fix with claude. anyhow here is report , maybe it be usefull.

Omarchy 3.4.0 update destroys boot on LUKS-encrypted systems with NVIDIA DKMS drivers

System details

  • Hardware: Intel CPU + NVIDIA GPU (hybrid graphics), NVMe SSD
  • Omarchy Version: Upgrading from 3.3.x to 3.4.0
  • Kernel: 6.18.7 → 6.18.9-arch1-2
  • Disk layout: NVMe with GPT, LUKS2 encryption, Btrfs subvolumes (@, @home, @log, @pkg)
  • NVIDIA driver: nvidia-open-dkms 590.48.01
  • Bootloader: Limine with UKI (Unified Kernel Image)

What happened

After updating to Omarchy 3.4.0, the system fails to boot entirely — no bootloader menu, no emergency shell, just falls straight through to BIOS/UEFI setup. The machine behaves as if no OS is installed.

Root cause analysis

The update triggered a chain of failures:

1. Limine package was removed during migration

After the update, pacman -Q limine returns "package not found." The entire Limine bootloader was uninstalled:

  • /usr/share/limine/ — gone
  • /etc/default/limine — gone
  • /boot/EFI/limine/ — gone
  • /boot/limine.conf — gone

2. /etc/kernel/cmdline was deleted

This critical file containing the LUKS unlock and root filesystem parameters was removed. Without it, even a manual limine-mkinitcpio cannot generate a working boot configuration:

Kernel command line is not available. Please create and configure /etc/kernel/cmdline

3. NVIDIA DKMS modules were not rebuilt before mkinitcpio

The kernel upgraded from 6.18.7 to 6.18.9, but DKMS modules were not rebuilt before mkinitcpio ran. This caused mkinitcpio to fail with:

==> ERROR: module not found: 'nvidia'
==> ERROR: module not found: 'nvidia_modeset'
==> ERROR: module not found: 'nvidia_uvm'
==> ERROR: module not found: 'nvidia_drm'
ERROR: mkinitcpio failed for kernel 6.18.9-arch1-2, skipping.

Because mkinitcpio failed, no UKI was generated, and /boot/EFI/Linux/ was left empty.

Net result

The ESP partition (nvme0n1p1) was left with only remnants:

  • EFI/BOOT/BOOTX64.EFI (generic fallback)
  • EFI/Linux/ (empty — no UKI)
  • EFI/systemd/ (old systemd-boot from initial archinstall)
  • intel-ucode.img
  • loader/
  • No Limine, no kernel, no initramfs, no limine.conf

UEFI firmware had nothing valid to boot, so it fell through to BIOS setup.

How I fixed it

Booted from the Omarchy live USB and performed the following recovery:

Reinstall Limine Rebuild NVIDIA DKMS modules (required before mkinitcpio succeeds) Recreate /etc/kernel/cmdline (this was deleted by the migration) Rebuild boot

audriusl avatar Mar 01 '26 21:03 audriusl

Worth noting that I don't have any nvidia hardware in my system.

folone avatar Mar 02 '26 09:03 folone

I'm going to close this, since I've fixed it for myself and was able to upgrade to the latest version.

folone avatar Apr 02 '26 11:04 folone