snapper.sh overwrites /etc/conf.d/snapper, silently de-registering user configs (home) so omarchy-snapshot stops covering /home
System details
Omarchy 4.0.2-1 (version file reports 4.0.0.alpha), snapper 0.13.1 / libsnapper 8.0.0, btrfs root with separate @home subvolume.
What's wrong?
install/config/snapper.sh writes /etc/conf.d/snapper with a truncating redirect rather than merging:
https://github.com/omacom/omarchy/blob/master/install/config/snapper.sh#L20
printf '%s\n' 'SNAPPER_CONFIGS="root"' >"$SNAPPER_CONF_PATH"
SNAPPER_CONFIGS is what registers configs with snapperd. Overwriting it silently de-registers every other snapper config the user has, most commonly home on the standard @/@home layout.
The consequence is not limited to timeline snapshots. omarchy-snapshot create enumerates configs from that same registry:
mapfile -t CONFIGS < <(sudo snapper --csvout list-configs | awk -F, 'NR>1 {print $1}')
for config in "${CONFIGS[@]}"; do
sudo snapper -c "$config" create -c number -d "$DESC"
so once home is de-registered, /home is silently dropped from pre-update snapshots too. The user keeps getting "Snapshots can be selected during boot" on every omarchy update while /home has no coverage at all.
It fails closed and silently: the config file is untouched and still valid, so nothing looks broken. snapper -c home list just returns Unknown config.
Reproduce
# given a working home config
sudo snapper list-configs # root, home
sudo bash install/config/snapper.sh
sudo systemctl restart snapperd
sudo snapper list-configs # root only
sudo snapper -c home list # Unknown config.
cat /etc/conf.d/snapper # SNAPPER_CONFIGS="root"
Confirmed as the mechanism by round-tripping it (note snapperd caches the list at startup, so a restart is required to observe either direction):
printf 'SNAPPER_CONFIGS="root home"\n' | sudo tee /etc/conf.d/snapper
sudo systemctl restart snapperd
sudo snapper list-configs # root, home -> restored
sudo snapper -c home list # works, snapshots intact
Observed on this machine
The config was de-registered on 2026-08-19 (mtime of the snapper.sh-installed /etc/snapper/configs/root is 08:19 that day). /home snapshots stop dead at that moment and none have been created since, across four subsequent omarchy update runs which each created a root snapshot:
# snapper --no-dbus -c home list (still readable directly)
40 │ Wed 19 Aug 2026 07:30 │ timeline │ timeline
41 │ Wed 19 Aug 2026 07:39 │ number │ 3.8.4
45 │ Wed 19 Aug 2026 08:18 │ number │ 3.8.5 <- last ever
# snapper -c root list
127 │ Wed 26 Aug 2026 13:12 │ number │ 4.0.0-1
128 │ Wed 26 Aug 2026 14:29 │ number │ 4.0.1-1
129 │ Mon 31 Aug 2026 07:40 │ number │ 4.0.1-1
130 │ Tue 01 Sep 2026 07:41 │ number │ 4.0.2-1
The timing is unlucky: the same Aug 19 run was the quattro upgrade, which orphaned a lot of user config under /home. The pre-update /home snapshot that would have covered it was prevented by the same script, in the same run.
Suggested fix
Merge rather than truncate — preserve configs Omarchy did not create, while still guaranteeing root is present:
existing=""
[[ -f $SNAPPER_CONF_PATH ]] && existing="$(. "$SNAPPER_CONF_PATH" 2>/dev/null; printf '%s' "${SNAPPER_CONFIGS:-}")"
merged="root"
for c in $existing; do [[ $c == root ]] || merged+=" $c"; done
printf 'SNAPPER_CONFIGS="%s"\n' "$merged" >"$SNAPPER_CONF_PATH"
If root-only is a deliberate policy rather than an oversight, then it would help a lot for the script to say so out loud when it drops a config, since today it is completely silent.
Related
- #5546 — migration
1776927490deleting user-configured timeline snapshots. Same theme (Omarchy vs a userhomeconfig) but a different mechanism: that one deletes snapshots, this one de-registers the config so nothing new is ever created, including thenumbersnapshotsomarchy-snapshotwould otherwise take.
Note snapper.sh also runs systemctl disable --now snapper-timeline.timer, which independently stops timeline snapshots for all configs. That part looks intentional and is arguably reasonable for a desktop; this report is specifically about the SNAPPER_CONFIGS overwrite, which additionally removes the event-driven pre-update coverage.
Opened a fix in https://github.com/omacom/omarchy/pull/9633.
install/config/snapper.sh now merges SNAPPER_CONFIGS instead of truncating to root only: root stays first and guaranteed, any other existing configs (for example home) are preserved in order, and re-runs do not duplicate root. Fresh installs with no prior file still write root alone.
Regression coverage is in test/shell.d/snapper-test.sh (preserve root home, prepend root onto a home-only registry, idempotent already-merged list). Focused snapper/snapshot shell tests pass; before/after reproduction against the old truncate path confirms home is no longer dropped.
Still present in 4.0.4.
Hit this today upgrading 3.8.4 → 4.0.4 via omarchy-upgrade-to-quattro, which reaches the same code path through configure_snapper_policy() → install/config/snapper.sh. So the upgrade itself de-registers home, not just a manual run or a fresh install.
Afterwards /etc/conf.d/snapper read SNAPPER_CONFIGS="root" and snapper -c home list returned Unknown config., while /etc/snapper/configs/home was untouched (mtime still 2 August). The 15 existing /home/.snapshots subvolumes survived, but nothing was creating or managing them any more, and nothing in the upgrade output hinted at it. Restoring SNAPPER_CONFIGS="root home" and restarting snapperd was enough to recover.
PR #9633 looks like the right fix -- happy to test it against this setup if that's useful.
Separately filed #12551 for the other write in the same script, the install -m 0644 over /etc/snapper/configs/root.
@abagonhishead thanks for confirming it still bites on the 3.8.4 → 4.0.4 upgrade path. Same root cause: omarchy-upgrade-to-quattro → configure_snapper_policy() → install/config/snapper.sh, which still truncates on current quattro until #9633 lands.
The fix in #9633 is still open (just rebased onto current quattro): merge SNAPPER_CONFIGS instead of rewriting it to root only, so a pre-existing home survives install, migration, and the upgrade. Focused snapper shell coverage still passes on the rebased head.
Until it merges, the recovery you used is the right one:
# put home back; /etc/snapper/configs/home and the snapshots are untouched
printf 'SNAPPER_CONFIGS="root home"\n' | sudo tee /etc/conf.d/snapper
sudo systemctl restart snapperd
sudo snapper list-configs # should show root, home
Happy to have you exercise #9633 against that setup if useful — the merge path is exactly the one the upgrade reaches. A one-time repair that re-registers configs still present under /etc/snapper/configs/ but missing from the registry is a separate decision (migration vs. leave to the user); flagged on the PR, not folded into the merge itself.
Confirmed in source on current quattro (988f44e): install/config/snapper.sh:20 still writes SNAPPER_CONFIGS="root" with a truncating redirect, so any other registered config, such as home, drops out of snapperd, and bin/omarchy-snapshot:26 builds its list from snapper list-configs, so /home silently stops being snapshotted before updates. The script is reached on a fresh install (install/config/all.sh:9), by omarchy-upgrade-to-quattro (bin/omarchy-upgrade-to-quattro:690) and by migration 1781984677.sh, which matches the upgrade report above.
The fix is already open as #9633, which merges SNAPPER_CONFIGS instead of truncating it and already closes this issue when it lands. That pull request is reviewed and run on a worker as its own item. I found no duplicate: #12551 is the separate overwrite of /etc/snapper/configs/root in the same script, and #5546 deletes timeline snapshots rather than de-registering a config.
Checked by Claude Opus 5.5, reading the source only; nothing was run for this issue. The bug classification was agreed separately by DeepSeek V4.1 Flash. No second opinion was available on the diagnosis itself: the reviewer (Codex Medium) answered a ping, but today's review budget was spent. This now waits on the maintainer's decision on #9633.