btrfs-overlayfs is enabled by default, which makes snapshot rollback impossible: limine-snapper-sync refuses to start inside every snapshot boot
What's wrong?
btrfs-overlayfs and limine-snapper-sync are mutually exclusive, and Omarchy enables the first by default. The result is that snapshot rollback cannot work on a stock Omarchy install — omarchy-snapshot restore walks straight into it.
This is the same root cause as #6634, but a different and much more serious consequence. #6634 reports the overlay breaking systemd-remount-fs (failed unit, red splash). Nobody has reported that it also makes the restore path impossible, which matters far more: the recovery mechanism is installed, enabled, and advertised in the boot menu, so users reasonably believe they have a rollback when they have none. You find out at the worst possible moment.
The conflict
limine-mkinitcpio-hook ships /usr/lib/initcpio/hooks/btrfs-overlayfs. Its run_latehook fires when all three hold:
/new_rootis btrfs- its SOURCE path contains
/snapshot - the subvolume is
ro=true
Every snapper snapshot is ro=true, so every snapshot boot gets an overlayfs mounted over /.
/usr/lib/limine/limine-snapper-sync (from the same upstream project family) requires / itself to be btrfs and bails at startup otherwise. Under the overlay, btrfs property get / ro returns ERROR: object is not a btrfs object: /.
So the entire chain dies before it starts:
omarchy-snapshot restore
-> sudo limine-snapper-restore
-> limine-snapper-sync --restore --no-mutex
-> /usr/lib/limine/limine-snapper-sync
"You are not in Btrfs, the tool does not update anything!"
The check runs before argument parsing, so even --help prints only that line and exits.
Upstream states the assumption plainly in its own CHANGELOG (1.9.5): "Booted from a read-only Btrfs snapshot without overlayfs." The two features were never designed to coexist. Omarchy enables the overlay in /etc/mkinitcpio.conf.d/omarchy_hooks.conf and separately wires omarchy-snapshot restore to the tool that the overlay disables.
Steps to reproduce
Stock Omarchy 4.x on btrfs with snapper + Limine.
sudo snapper -c root create -d testsudo limine-snapper-sync(refresh the boot menu)- Reboot, pick the snapshot from Limine's Snapshots submenu
- Observe:
findmnt -no FSTYPE / # overlay (expected: btrfs)
sudo btrfs property get / ro # ERROR: object is not a btrfs object: /
sudo limine-snapper-sync --restore # You are not in Btrfs, the tool does not update anything!
sudo omarchy-snapshot restore # same, via limine-snapper-restore
Verified on Omarchy 4.0.0 (quattro), kernel 7.1.8-arch1-3, limine-snapper-sync 1.31.0-1, limine-mkinitcpio-hook 1.37.1-1, btrfs, no LUKS, Limine UKI.
Ruled out
Both of the tool's documented escapes still fail — the /-is-btrfs check precedes them:
- pre-mounting the btrfs top level (
mount -t btrfs -o subvol=/ /dev/… /mnt/btrfs) - setting
ROOT_SUBVOLUME_PATH="@"in/etc/default/limine(the binary's own option; cf. its string "No ROOT_SUBVOLUME_PATH. Please set ROOT_SUBVOLUME_PATH in /etc/default/limine")
limine-snapper-sync 1.31.0 is the latest release, so there is no version to upgrade into.
There is also a catch-22 that rules out the obvious workaround of "just restore from the normal boot": the snapshot to restore is identified by a regex on /proc/cmdline (subvol=.*?/([0-9]+)/snapshot), which only matches when you are booted into a snapshot. Booted normally, / is btrfs and the tool runs — but there is no snapshot for it to act on.
Fix
The cleanest fix is to stop enabling the overlay by default, since it silently trades away rollback — which is the entire point of shipping snapper + Limine. A read-only snapshot boot is also inherently safer for recovery: it cannot dirty the snapshot it is about to restore from.
If the overlay is worth keeping for its writable-snapshot-boot convenience, then omarchy-snapshot restore should at minimum detect the overlay and say so, instead of surfacing "You are not in Btrfs" from a nested helper.
Workaround
A drop-in that sorts after omarchy_hooks.conf filters the hook out. It must sort after, because omarchy_hooks.conf assigns HOOKS=(...) outright (cf. #6876); mkinitcpio 41.1 collects /etc/mkinitcpio.conf.d/*.conf via sort -zVu, so a zz- prefix lands last. This touches no package-owned file, so unlike patching the hook body it needs no NoUpgrade pacman hook to survive updates.
/etc/mkinitcpio.conf.d/zz-no-btrfs-overlayfs.conf:
_hooks=()
for _h in "${HOOKS[@]}"; do
[[ $_h == "btrfs-overlayfs" ]] || _hooks+=("$_h")
done
HOOKS=("${_hooks[@]}")
unset _hooks _h
Then sudo limine-mkinitcpio — not mkinitcpio -P, which is a silent no-op on Omarchy because /etc/mkinitcpio.d/ is empty (UKI, not preset images).
Verified end to end after applying: snapshot boot lands on findmnt -no FSTYPE / = btrfs, btrfs property get / ro = ro=true, and limine-snapper-sync --restore completes normally — mounts the btrfs top level, swaps @, re-parents the child subvolumes and preserves the previous @ as a new snapshot.
One trap for anyone testing this
Snapshot boot entries are pinned to the UKI that was current when the snapshot was taken (limine_history/snapshots.json). Rebuilding the UKI does not retrofit existing entries — they keep booting the old initramfs, overlay hook included. After applying the workaround you must take a new snapshot, or you will test the fix against an image that does not contain it and conclude it failed.
Related
- #6634 — same root cause, reported for the
systemd-remount-fs/ red-splash symptom - #6633 — the companion fstab layer
- #6876 —
omarchy_hooks.confassignsHOOKSrather than extending it (why the drop-in must sort last)
I tried this on a stock Omarchy worker VM and could not reproduce the central claim: a restore from a snapshot boot worked with the overlay in place.
What was run. limine-snapper-sync 1.31.0, limine-mkinitcpio-hook 1.38.0, the stock omarchy_hooks.conf with btrfs-overlayfs, and RESTORE_METHOD=replace (the upstream default). I took a new snapshot, refreshed the boot menu, and booted the snapshot's own Limine entry.
findmnt -no FSTYPE /gaveoverlay, andbtrfs property get / rogaveobject is not a btrfs object, as you describe.sudo /usr/lib/limine/limine-snapper-sync --helpprintedYou are not in Btrfs, the tool does not update anything!, as you describe.- But
sudo limine-snapper-sync --restore --no-mutexandsudo omarchy-snapshot restoreboth went on to theRestore snapshot 2 (method: replace)?prompt. Confirming it mounted the btrfs top level at/run/lss, replaced@with a copy of the snapshot, moved the child subvolumes across, kept the old@as snapshot 3, and printedRestore complete. - After a normal reboot,
/was btrfs on a new@created at the moment of the restore, with the old root listed insnapper listas the backup.
So the message comes from running the binary under /usr/lib/limine directly. The /usr/bin/limine-snapper-sync wrapper that limine-snapper-restore calls takes a different path when restoring, and that path worked. Upstream's README says the overlay works with the replace and rsync restore methods and recommends it for them. Only the snapper/opensuse method refuses it. The 1.9.5 changelog line you quote is about who may read the temporary config file /tmp/limine-snapper-sync.conf. It doesn't restrict restoring.
What does break on a snapshot boot. systemd-remount-fs.service fails and snapper list errors, because / is the overlay. The remount failure is #6634, which is waiting on the maintainer to decide whether snapshot boots should keep the overlay.
What would explain your failure. Something on your machine differs from the stock setup. From a snapshot boot, could you post:
- the full output of
sudo limine-snapper-restore pacman -Q limine-snapper-sync limine-mkinitcpio-hookgrep -E '^(RESTORE_METHOD|ROOT_SUBVOLUME_PATH|ROOT_SNAPSHOTS_PATH)' /etc/default/limine /etc/limine-snapper-sync.conf
A RESTORE_METHOD of snapper or opensuse would explain it. The ROOT_SUBVOLUME_PATH="@" you tried might also matter, since upstream's own example uses /@.
Second opinion. Codex Medium reviewed the same evidence and upstream files and reached the same conclusion. It also pointed out what the 1.9.5 changelog entry actually restricts, which I then checked against limine-snapper-restore. It may have seen this analysis first, so its agreement is not guaranteed to be independent.
This now waits on your answer. No fix pull request has been opened, because the default setup restored correctly.