Refuse factory reset handoff to a different installed version

This commit is contained in:
Afonso Oliveira committed 2026-09-24 22:42:46 +01:00
1 parent 4dd5414bfc
commit 45a6433139
2 files changed
+8

No files matched your search

+2
View File
@@ -201,6 +201,8 @@ yet and silently runs the packaged copy of one it has. The drop-in is validated
with `visudo -c` before install and removed by `omarchy-dev-unlink`; unlike
`/etc/omarchy.conf`, it takes effect without a reboot.
Factory reset is an exception: it always self-elevates through `/usr/bin/omarchy-system-factory-reset` and refuses a checkout copy that differs from the installed command, including when invoked with `sudo`. Install the matching package before resetting so a newer checkout cannot silently hand off to older account-scrubbing code.
## Runtime finalization (`omarchy-provision-user`)
Runs once per user. It does **not** copy `~/.config/**`, `~/.bashrc`,