Snapshot boot entry cmdline has typo 'zswaap.enabled=0' after fresh 4.0.4 install
Summary
Fresh Omarchy 4.0.4 install generates a snapshot boot entry in /boot/limine.conf whose kernel cmdline contains zswaap.enabled=0 (typo for zswap.enabled=0), while every actual configuration source on the installed system is correct.
Environment
- Omarchy 4.0.4-1 (ISO build 2026-09-15), kernel
7.2.5-3-omarchy,limine 12.8.0,limine-mkinitcpio-hook 1.38.0,limine-snapper-sync 1.31.0 - x86_64 / UEFI / LUKS on
nvme0n1p2booted via UKI entries (ENABLE_UKI=yes,CUSTOM_UKI_NAME=omarchy), btrfs@/@.snapshotssubvol layout - Hardware: Samsung 850XBD
Symptom
The first Snapper snapshot entry created during install (2026-09-24 11:08) has:
cmdline: cryptdevice=PARTUUID=... root=/dev/mapper/root zswaap.enabled=0 rootflags=subvol=/@/.snapshots/1/snapshot rw rootfstype=btrfs resume=... initramfs_async=0 quiet splash ...
The main /Omarchy entry in the same file and all cmdline sources are correct (zswap.enabled=0):
/etc/kernel/cmdline/etc/default/limine→KERNEL_CMDLINE[default]+="cryptdevice=... zswap.enabled=0 rootflags=subvol=@ rw rootfstype=btrfs"- booted
/proc/cmdline
Impact
zswaap.enabled=0 is an unknown kernel parameter and is silently ignored, so zswap.enabled=0 does not apply when booting a snapshot. Arch kernels enable zswap by default; Omarchy additionally disables it at runtime via tmpfiles.d/omarchy-zswap.conf, so both mechanisms are bypassed/affected on snapshot boots.
Root cause unclear / not reproducible post-install
rg zswaap over /etc, /usr/share/omarchy, /usr/lib/limine — and the ISO's airootfs.sfs /etc — finds nothing after the fact. The bad string existed only in the generated /boot/limine.conf. Likely the install-time tool run transiently sourced the cmdline from somewhere other than the final /etc/kernel/cmdline + /etc/default/limine, and the value was baked into the snapshot entry; later entry-tool runs refresh the main entry but the snapshot section only rewrites on the next limine-snapper-sync.
Verified fix
Running limine-snapper-sync rewrites snapshot entries from the live /proc/cmdline; it produced an exact one-line diff zswaap → zswap and /boot/limine.conf is now correct.
Suggested hardening
Have the installer run limine-entry-tool and limine-snapper-sync as a final post-install step (or validate the generated snapshot cmdline against /etc/kernel/cmdline), so snapshot entries cannot retain stale/transient cmdline values from install time.
Thanks. Nothing in this repo writes zswap.enabled=0 into the kernel cmdline anymore (Omarchy disables zswap through etc/tmpfiles.d/omarchy-zswap.conf), so the typo most likely came from the ISO/configurator step that wrote /etc/default/limine, or from the first limine-snapper-sync run. Could you check /var/log/omarchy-install.log (and any archinstall log on the ISO) for zswaap? That would show which tool produced it. Running limine-snapper-sync again, as you did, is the right fix in the meantime.
I looked for where zswaap could come from and tried to reproduce it on a clean install. I couldn't reproduce it, and none of the code involved can produce that string.
Reproduction. A VM installed from the 4.0.4 ISO, with the same limine 12.8.0, limine-snapper-sync 1.31.0 and limine-mkinitcpio-hook 1.38.0, has the install-time snapshot 1 entry with zswap.enabled=0, matching the main entry, /etc/default/limine and /etc/kernel/cmdline. zswaap is not in its /boot/limine.conf or /var/log/omarchy-install.log. That VM was unencrypted, so the LUKS path you used was not exercised.
Source. zswaap does not appear anywhere in the history of Omarchy, the ISO installer or limine-snapper-sync, and GitHub code search finds it nowhere either. The installer writes zswap.enabled=0 into /etc/default/limine, either from archinstall's kernel parameters or from _build_pre_mounted_cmdline in the ISO orchestrator. limine-snapper-sync builds a snapshot's cmdline by copying the main entry's cmdline: line from limine.conf as it is when the snapshot is taken. It only rewrites the subvol= inside rootflags= (replaceSubvolPath in KernelReader.java) and never inserts characters.
What that means. Your snapshot 1 entry most likely shows what the main entry said at 11:08 during the install, so the main entry carried zswaap at that moment and a later limine-entry-tool run rewrote it from correct sources. What put the typo into that first main entry is still unexplained. Whether /var/log/omarchy-install.log contains zswaap (grep -n zswaap /var/log/omarchy-install.log), as asked above, would settle it either way. If you still have the ISO's archinstall log, check that too.
This was investigated by Claude Opus 5.5 alone. The second opinion (Codex Medium) did not run because the reviewer's daily budget was spent. It's waiting on your answer. Re-running limine-snapper-sync remains the right fix for an affected machine.