OPINIONATED OMARCHY
TROUBLESHOOTING CORPUS
790
RECORDS
790
AUDITED
0
UNCHECKED
2388
SOURCES
LIVE
apps-services medium occasional DISPUTE

Get Omarchy's zram swap working when zram-generator was never installed

omarchyzramsystemdarch
AUDITED Audited against its sources and confirmed accurate. · checked against Omarchy omarchy 4.0.4-1 on 2026-10-05
AUDIT NOTE

Confirmed locally: /usr/lib/systemd/zram-generator.conf.d/90-omarchy.conf is owned by omarchy-settings 4.0.4-1 with zram-size = ram, zstd and swap-priority = 100, omarchy-settings lists zram-generator only under Optional Deps, and the omarchy package's Depends On does not include it. A grep of /usr/share/omarchy finds zram only in the drop-in, install/omarchy-other.packages (the ISO cache list, also line 45 on quattro) and two migrations, neither of which installs the package. Migration 1784961000.sh itself uses daemon-reload then restart dev-zram0.swap, which matches the fix. omarchy-pkg-add runs pacman -S --needed, which the ALPM guard allows because it has no -u. Issue #7522 is open and states exactly this cause and the curl-installer upgrade path. The referenced record zram-swap-oom-freezes exists in the corpus. Not exercised: installing the package.

Symptom

swapon --show prints nothing and zramctl is empty, so the machine has no swap at all and freezes or has apps killed under memory pressure. Yet /usr/lib/systemd/zram-generator.conf.d/90-omarchy.conf is there with zram-size = ram. Usually a machine where Omarchy was installed with the curl installer onto an existing Arch base, or upgraded from Omarchy 3.

Cause

omarchy-settings ships the zram configuration but lists zram-generator only as an optional dependency (4.0.4-1: Optional Deps: zram-generator), and the omarchy package does not depend on it. Nothing in the install scripts installs it either: on the quattro branch it appears only in install/omarchy-other.packages, the offline package cache list, not in omarchy-base.packages. Without the generator nothing reads the config, so no zram device is created. Reported as omacom/omarchy#7522, still open.

Fix

Check first:


pacman -Q zram-generator
zramctl
swapon --show

**Omarchy 4:** install the generator and let the shipped config take effect:


omarchy-pkg-add zram-generator
sudo systemctl daemon-reload
sudo systemctl start dev-zram0.swap

A reboot does the same. Do not create /etc/systemd/zram-generator.conf to "configure" it, the shipped drop-in already does.

**Plain Arch:** installing the package alone creates nothing, because Arch ships no config. Install it and write /etc/systemd/zram-generator.conf yourself (see the zram record zram-swap-oom-freezes).

Verify

zramctl shows /dev/zram0 with algorithm zstd and a size about equal to RAM, and swapon --show lists /dev/zram0 with priority 100.

Sources

omarchy-zram-generator-not-installed-no-swap