Kernel update regenerates Limine boot entries with no root= — system silently unbootable when /etc/default/limine lacks a base cmdline
System
- Omarchy 4.0.5-1 (updated from 4.0.4-1 when this happened), kernel linux-omarchy 7.2.5-3 → 7.2.8-9, linux 7.2.3 → 7.2.11
- limine 12.9.3-1, limine-mkinitcpio-hook 1.40.0-2, limine-snapper-sync 1.32.1-2, mkinitcpio 42.2-1
- HP OmniDesk M03, Intel Core Ultra 7 265, i915, unencrypted btrfs root, UKI boot via limine
- Debug log: https://logs.omarchy.org/ZkifdO (auto-expires 24h after posting; generated with
omarchy-debug --no-sudo --print)
What happened
On 2026-10-18 a routine omarchy update upgraded both kernels. Because the kernel versions changed, limine-entry-tool regenerated the two default boot entries in /efi/limine.conf. The regenerated cmdline: lines contained only the fragments from /etc/limine-entry-tool.d/*.conf (rtc-alarm, resume, omarchy-defaults):
cmdline: rtc_cmos.use_acpi_alarm=1 resume=/dev/mapper/root resume_offset=1900964 initramfs_async=0 quiet splash loglevel=0 ...
No root=, no rootflags=, no rootfstype=. The kernel had no root device, so every default entry died in early boot — no journal, no console output (quiet splash), nothing. The only working path left was the limine-snapper snapshot entries, which carry their own complete cmdlines.
The reason the base was missing: the base KERNEL_CMDLINE[default]+="root=... rootflags=subvol=@ rw rootfstype=btrfs" line in /etc/default/limine had been commented out on this machine during an earlier repair, because the line as shipped/derived contained stale LUKS args (cryptdevice=... root=/dev/mapper/root ...) on what is an unencrypted install. Until this update that hole was invisible — entry cmdlines were preserved from install time and never regenerated. The kernel update was the first thing to force a full regeneration, and the tool built unbootable entries from fragments alone, with no warning.
What I expected
One of:
- limine-entry-tool validates the generated cmdline and refuses (or warns loudly) if it lacks
root=/rootflags=— regeneration producing a guaranteed-unbootable entry should never be silent; and/or - The shipped config makes it hard to end up in this state — the base cmdline line lives only in
/etc/default/limineas a user-editable line, and nothing documents that removing it breaks the next kernel update rather than the current boot. A comment in the shipped file ("this line is required; regenerated boot entries are built from it") would have prevented this.
Steps to reproduce
- Omarchy with UKI/limine boot, btrfs root.
- Remove/comment the
KERNEL_CMDLINE[default]+="root=..."base line in/etc/default/limine(system keeps booting fine — existing entries are untouched). - Update the kernel package so limine-entry-tool regenerates entries.
- Reboot → all default entries fail in early boot; only snapshot entries boot.
Secondary issue in the same area
Fresh unencrypted installs end up with LUKS-era cmdline artifacts: /etc/kernel/cmdline ships cryptdevice=PARTUUID=... root=/dev/mapper/root, and /etc/limine-entry-tool.d/resume.conf ships resume=/dev/mapper/root resume_offset=1900964 (this machine's real swap is /dev/nvme0n1p6 offset 1926918). Users who clean those up by commenting them out are the ones who create the missing-base state above. If the installer wrote the correct unencrypted values into the base line in the first place, there'd be nothing to comment out.
Suggested fix
- Add a post-generation sanity check in limine-entry-tool: if a generated default entry's cmdline lacks
root=, abort with a clear error naming/etc/default/limine(and keep the previous working entries). - Ship an explanatory comment on the base cmdline line in
/etc/default/limineso users fixing stale LUKS args replace the line instead of deleting it.
Independent instance on the rc channel with a different trigger (channel switch, not kernel update) — it corroborates the root cause here and adds UKI embedded-cmdline evidence.
Environment: iMac18,3 (Intel i5-7600, amdgpu), omarchy/omarchy-settings 4.5.0rc1-1 (stable→rc via omarchy channel set rc), linux-omarchy 7.2.8-9 + linux-lts 6.18.57-2, limine-mkinitcpio-hook 1.40.0-2, ext4 root.
Timeline (2026-10-26 MDT):
omarchy channel set rcinstalls the rc packages; limine hooks regenerate the entries and both UKIs (omarchy_linux-omarchy.efi,omarchy_linux-lts.efi) at 06:20 with quirks-only cmdlines — noroot=anywhere:
andcmdline: systemd.tty.term.console=dumb initramfs_async=0 quiet splash loglevel=0 systemd.show_status=false rd.udev.log_level=0 vt.global_cursor_default=0/etc/kernel/cmdlineis absent on this machine.- Reboot → initramfs emergency:
Error: Failed to mount '' on real root→ manualmount /dev/nvme0n1p2 /new_root,exit→ boot completes normally. Kernel/initramfs were fine — pure boot-parameter loss, unbootable only from the regen. - Repair round 1: recreating
/etc/kernel/cmdlinealone did not fix regeneration. limine-entry-tool's own docs (/etc/limine-entry-tool.conf, L47–57) sayKERNEL_CMDLINE[default]+="Ignores /etc/kernel/cmdline and /proc/cmdline". Omarchy's shipped drop-in/etc/limine-entry-tool.d/omarchy-defaults.confuses+=, so regen preserves the existing entry cmdline and cannot pull a root device from the kernel-cmdline file — matching the failure mode described here. - Fix that worked: pin in
/etc/default/limine:
(+KERNEL_CMDLINE[default]+=" root=UUID=<root-uuid> rw"/etc/kernel/cmdlinerecreated as belt-and-braces), regenerate withlimine-update; verification reboot clean, 0 failed units.
Additional evidence in the pack (24h): both regenerated UKIs' embedded .cmdline sections also lacked root= (verified with strings on the 06:20 builds); pre-fix/post-fix limine.conf, /etc/default/limine, /etc/kernel/cmdline, and the pacman.log regen excerpt: https://logs.omarchy.org/abxsKt — full omarchy-debug: https://logs.omarchy.org/b4iozs
Supporting the ask in the report: a fail-safe that verifies the effective cmdline — the entry cmdline: and the UKI's embedded .cmdline for UKI entries — contains a root= device before accepting regeneration would have caught both triggers (kernel-update and channel-switch). Related: #9826 covers a second path where the UKI cmdline silently drops root=.