System updates and migrations
Omarchy evolves an installed system through one controlled update path. The path updates signed packages, repairs state for each user, refreshes the session view, checks boot files, and tells the user when a restart is needed. It also supports release channels and a time-ordered migration queue so older installs can reach the state expected by newer packages. For detailed update orchestration, see Update orchestration and system maintenance. For migrations, see Migration framework.
Update lifecycle
The update lifecycle combines system package changes with user-state work that packages cannot safely own. omarchy update is the main entry point. It keeps the process visible so a person can act when a package conflict or another choice needs attention.
The normal sequence is:
- Check free space and ask for confirmation.
- Prune old package-cache versions and attempt a snapshot safety step.
- Keep the system awake and update development sources and signing keys when needed.
- Run the system package transaction.
- Apply pending user migrations in time order.
- Review orphan packages, analyze update logs, and clear the shell update indicator.
- Restart marked services and the shell.
- Run post-update hooks and update tools managed by
mise. - Update AUR packages separately, verify boot files, and offer a reboot when needed.
The update uses one user lock to prevent overlapping runs. The lock is held by the running process rather than by the presence of a lock file. The file stores only a diagnostic process ID. The update records a transcript and keeps the system awake during long work. Most failures leave visible output and the transcript for diagnosis instead of silently continuing with later state changes. Snapshot creation is best effort. The update reports when Snapper is absent or a snapshot cannot be made. The final boot check must succeed when the platform has an Omarchy-managed boot package before the update offers a reboot.
The update log review also checks for an expected successful initramfs build. It treats the Apple Silicon hook output separately because that hook announces itself on all ARM systems but builds an image only on supported machines. If the expected success message is missing, the update warns the user to review the log before restarting.
The -y form skips the start confirmation and suppresses Omarchy confirmation prompts for unattended work. Interactive review steps report their result and move on instead of waiting. Sudo authorization is still required.
This diagram shows how the protected entry point moves from safety checks to package state, user state, session state, third-party packages, and boot verification.
flowchart TD
A[omarchy update] --> B[Lock and transcript]
B --> C[Space check and confirmation]
C --> D[Cache prune and snapshot]
D --> E[Keep awake and refresh sources]
E --> F[Signing keys]
F --> G[System packages]
G --> H[Per-user migrations]
H --> I[Cleanup and status]
I --> J[Service and shell restarts]
J --> K[Hooks and tool updates]
K --> L[AUR packages]
L --> M[Boot verification]
M --> N[Reboot offer]
References: bin/omarchy-update• L14-21 bin/omarchy-update• L46-80 bin/omarchy-update• L88-117 bin/omarchy-update• L119-164 bin/omarchy-update-lock• L9-50 bin/omarchy-update-confirm• L5-17 bin/omarchy-update-requires-free-space• L8-16 bin/omarchy-update-boot• L19-39
Package transactions
The package stage brings Omarchy and the wider system to a consistent package set before migrations run. It refreshes signing keys first, then performs the main upgrade through the guarded package path. This order lets migrations rely on package files introduced by the transaction.
The update keeps package work visible. A file conflict from an old unowned Omarchy file can be quarantined and retried once. A package-to-package conflict needs a human choice, so unattended updates stop instead of guessing. After the main transaction, the update reviews orphan packages and removes them only after the required confirmation or an explicit automatic choice.
The update keeps AUR packages and mise tools as separate concerns. AUR builds run after the main package update, so they build against the new system. mise tools are also optional: a failed tool download remains visible but does not skip boot verification or reboot handling. If AUR access is not available, the update reports the skip rather than treating optional packages as part of the core update.
Signing-key maintenance runs before the main transaction. It obtains the Omarchy key from its Web Key Directory and accepts only the pinned fingerprint. It also checks that the Arch Linux ARM key is trusted on ARM systems. Installed platform keyrings are refreshed only when their packages are already present, so this step does not add a repository that the machine does not already use.
The package cache keeps two versions before the transaction. This preserves an offline downgrade path while still removing older superseded versions. The system package step updates an active development checkout before the package transaction when the install uses one. It uses a fast-forward pull and stops if the checkout is not a valid tracked source.
References: bin/omarchy-update-keyring• L11-37 bin/omarchy-update-keyring• L39-105 bin/omarchy-update-pkg-prune• L8-13 bin/omarchy-update-dev• L7-27 bin/omarchy-update-system-pkgs• L8-39 bin/omarchy-update-orphan-pkgs• L10-31 bin/omarchy-update-mise• L5-12 bin/omarchy-update-aur-pkgs• L12-20
Safety guards
The update boundary protects the package transaction and the privilege boundary around it. The entry point requires a trusted start, a matching Omarchy source root, and a fresh authorization. Authorization starts only after the user confirms the update or selects unattended mode. A keepalive maintains it during long work, and the update ends it before reboot handling.
Direct pacman -Syu-style upgrades are stopped before packages change. Omarchy-owned package calls mark themselves as part of the approved flow. A user can bypass the guard for one transaction, but that bypass does not provide the normal snapshot, migration, hook, status, restart, or boot-verification guarantees.
The update also separates controlled update work from third-party build work. Boot verification is the last sudo-capable phase. On Qualcomm systems, the boot-image hook refreshes the managed device-tree list from the installed kernel trees before the image is built. It preserves unrelated UKI settings and keeps the prior list when discovery or a safe write fails. On platforms without the managed boot package, verification reports that it cannot verify the chain instead of blocking every update. Later reboot handling cannot reuse the update authorization.
References: bin/omarchy-update• L18-43 bin/omarchy-update• L127-164 bin/omarchy-update-lock• L12-50 bin/omarchy-update-qualcomm-device-trees• L8-15 bin/omarchy-update-qualcomm-device-trees• L88-163 bin/omarchy-update-boot• L19-39
Migration framework
Migrations are one-time repair steps for state that a package install cannot safely own. They run as the current user after the package transaction. They can update home directories, session services, preferences, hardware support, and other user state. Each migration has a marker in the user’s state directory, so every user on a shared system receives the repair separately.
Migrations use timestamp-named files as their order. The runner scans them in name order, skips marked files, and records a marker only after success. If a migration fails, it stays pending and later migrations do not run. A migration must be safe to run again because it can repair machine-wide state for the first user and then find nothing to change for later users.
The current queue keeps older installs aligned with newer defaults, tools, applications, and hardware support. Its main areas are:
- Package and tool changes move old
misewrappers to native lazy shims, add newer coding-agent shims, move Pi to a package when its declaration is removed, and install later base or optional packages. These steps wait for the package state they need and respect recorded preinstall opt-outs. - Application and desktop changes add or remove model and agent launchers as the product layout changes, relink renamed agent skills, update Pi settings, and preserve user-edited shell and application state.
- Hardware changes add support for Surface Laptop 7, Snapdragon laptops, Intel Mac cameras, Lenovo Yoga Slim 7x resume, and HP ZBook display repair. Other changes adjust AMD and Intel GPU memory settings or enable shutdown-ramfs preparation. Boot-image work stays pending until a rebuild succeeds.
- Older package and desktop transitions repair local-model placement, launcher layout, and first-update status without treating an explicit user choice as a default.
These transitions use package, hardware, file-state, and user-state checks so they do not replace unrelated local choices. Machine-wide changes use a separate marker from per-user migration markers. Boot-image work uses a pending marker until the rebuild succeeds, then records that the machine-wide work is complete and marks the system for reboot when needed.
For the detailed child page, see Migration framework.
References: bin/omarchy-migrate• L31-45 bin/omarchy-migrate• L47-102 agents/…/migrations.md• L5-32 migrations/1791382872.sh• L51-94 migrations/1792504295.sh• L3-15 migrations/1794839007.sh• L1-9 migrations/1794855305.sh• L8-31 migrations/1794864665.sh• L1-11 migrations/1794909082.sh• L7-38 migrations/1795181196.sh• L1-5 migrations/1795191169.sh• L1-5 migrations/1795200237.sh• L1-18 migrations/1795263097.sh• L1-5 migrations/1795274792.sh• L9-36 migrations/1795277141.sh• L1-8 migrations/1795284903.sh• L1-15 migrations/1795285870.sh• L4-30 migrations/1795294173.sh• L1-3 migrations/1795318856.sh• L1-18 migrations/1795337583.sh• L1-11 migrations/1795348551.sh• L9-35 migrations/1795354093.sh• L8-58 migrations/1795354646.sh• L1-3 migrations/1795354955.sh• L1-3 migrations/1795372675.sh• L1-3 migrations/1795376239.sh• L1-10 migrations/1795380483.sh• L1-22 migrations/1795430592.sh• L1-8 migrations/1795441583.sh• L1-23
Migration entry points
The normal migration entry point is the visible update terminal. omarchy-migrate waits for an active package transaction to finish, then runs pending migrations for the current user. It also provides a pending check for status tools and login notification without changing system state.
Login provides the recovery path for users who did not run the update. A per-user service checks for missing markers after the graphical session starts. If it finds pending work, it sends a notification with a click action that opens omarchy-migrate; it does not apply migrations silently. The service checks the update lock before and after waiting for the notification server so a normal update does not create a duplicate prompt.
This diagram shows how package updates and graphical logins converge on the same migration runner without competing with an active update.
flowchart LR
A[omarchy update] --> B[Package transaction]
B --> C[omarchy-migrate]
D[Graphical login] --> E[Pending migration check]
E -->|pending and no update lock| F[Notification]
F --> C
C --> G[Per-user migration markers]
References: bin/omarchy-migrate• L68-102 bin/omarchy-migrate-notify• L7-60 default/…/omarchy-migrate-notify.service• L1-20 agents/…/migrations.md• L34-86
Update notifications and status
The update system reports two different kinds of state. The shell update indicator tells the user that a package or development checkout update is available. A migration notification tells one user that their own migration markers are incomplete. Keeping these checks separate prevents package availability from being confused with per-user repair work.
The availability check looks at the active Omarchy source. A development checkout is compared with its upstream branch. A package-backed install is checked through the package manager. Before the first completed Omarchy update, any available package update keeps the indicator active so older installs receive an update pass. After that point, the check focuses on the installed Omarchy package. The shell checks at startup and at a regular interval. The main pipeline clears the indicator after the full upgrade.
The post-update hook system can add a user notification after a successful update. It uses the common Omarchy notification sender, so it remains optional and does not replace the migration notifier or the shell indicator.
References: bin/omarchy-update• L121-125 bin/omarchy-update-available• L7-45 migrations/1795263097.sh• L1-5 config/…/show-update-notification.sample• L1-7 docs/notifications.md• L164-179
Channels and version controls
Channels decide which Omarchy package source and update behavior an installed system follows. Stable, RC, and edge use package repositories with different release levels. Dev combines edge packages with a source checkout, so its Omarchy code advances through the checkout rather than only through a package version.
The channel switch changes the package source and package family as one protected operation. It validates a dev checkout and its regional package support before linking it. It checks that the destination still has the update support it needs after each package transaction. A completed switch starts the update path so the selected channel can finish its system and user changes.
Runtime version and channel views come from active state instead of a separate version file. The version command reads the installed package or linked checkout. Channel commands combine the source path, installed package family, mirror, and repository configuration.
| Channel | System source | Intended use |
|---|---|---|
stable | Stable Omarchy packages and mirror | Normal release use |
rc | Release-candidate packages and mirror | Final release validation |
edge | Development Omarchy packages and mirror | Early package testing |
dev | A source checkout with edge packages | Omarchy development work |
References: bin/omarchy-channel-set• L27-220 bin/omarchy-refresh-pacman• L27-99 bin/omarchy-channel-current• L7-30 bin/omarchy-version-channel• L1-29 manual/30-updates.md• L11-21
Legacy installation transition
The pre-quattro upgrade moves a legacy installation from a user-managed Omarchy tree to the package-backed layout. It does this as one staged operation because package files, system services, user configuration, boot entries, and the running desktop must change together.
The transition preserves user intent where it can. It backs up old configuration, refreshes only known shipped defaults, keeps custom files as active overrides, moves custom theme assets, and provides temporary compatibility paths for the live pre-reboot session. It changes the boot setup before package hooks can make the new boot configuration authoritative, then verifies the generated entries before allowing reboot.
The transition also normalizes system services and login behavior. It enables the new system services, retires conflicting old services without stopping a live network connection, applies packaged firewall defaults, and runs the user migration queue before the final status checks. The old desktop remains in place until reboot so a partial live-session swap does not create a false recovery path. Channel selection is explicit and constrained: stable uses stable packages, while RC and edge can use the development package family when the target requires it.
References: bin/omarchy-upgrade-to-quattro• L41-149 bin/omarchy-upgrade-to-quattro• L393-460 bin/omarchy-upgrade-to-quattro• L524-687 bin/omarchy-upgrade-to-quattro• L1388-1547 bin/omarchy-upgrade-to-quattro• L1549-2333 bin/omarchy-upgrade-to-quattro• L2436-2499
Change checklist
When these files or sections are changed, remember to consider these:
- Changes to the update order must preserve the package-before-migration contract. Migrations may depend on files introduced by the package transaction.
- Changes to free-space checks, cache pruning, or snapshots must keep the safety message aligned with the actual protection available before package changes.
- Changes to the pacman refresh path must preserve channel-specific package selection, configuration backups, rendered regional settings, and the boundary around the pre-refresh hook.
- Changes to the pacman guard or package helper must preserve the marker that distinguishes Omarchy-owned transactions from direct system upgrades.
- Changes to migration names, ordering, or marker paths must keep pending checks and per-user completion state aligned.
- Changes to migration preconditions must keep migrations pending until the package or service state they need is available.
- Changes to machine-wide boot or firmware migrations must keep their shared rebuild marker separate from per-user migration markers.
- Changes to hardware migration guards must keep unsupported machines on the no-op path and must not install hardware-specific packages broadly.
- Changes to state-layout migrations must preserve existing user data when both old and new locations already contain state.
- Changes to user preference migrations must keep explicit user settings ahead of new defaults and preserve a recoverable copy when files are replaced.
- Changes to
misemigrations must remove only known shipped wrappers, wait for the settings package when required, and preserve user-declared tools and preinstall opt-outs. - Changes to launcher, shell layout, or Pi settings migrations must preserve user-edited entries and leave malformed user files pending rather than replacing them.
- Changes to the login notifier must keep its update-lock check and its post-session ordering. Otherwise normal updates can produce duplicate prompts.
- Changes to channel packages or repository configuration must keep channel detection consistent with the package family and the active source path.
- Changes to boot verification must keep the no-managed-boot-package warning distinct from a failed verification on a managed platform.
- Changes to Qualcomm device-tree discovery must preserve unmanaged UKI settings and the last known device-tree list when discovery or a safe write fails.
- Changes to signing-key setup must keep the pinned Omarchy fingerprint and ARM trust check ahead of the main package transaction. Installed platform keyrings must remain limited to repositories already in use.
- Changes to boot-image migrations must keep rebuild failure pending and set reboot-required only after the new image is confirmed.
- Changes to the update log analyzer must keep the platform-specific initramfs success check aligned with the package hook output. A warning must appear before reboot when image generation is not confirmed.
- Changes to the update lock must keep the open-file lock as the source of truth. The diagnostic PID and lock-file presence must not be used to unlock or infer ownership.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| Root free space is below 10 GiB | The update stops before confirmation and package changes | The free-space check blocks the normal path unless an explicit force setting is used |
Direct pacman -Syu runs without the explicit bypass | The transaction stops before package changes | The package-manager guard directs the user to omarchy update |
| A required signing key cannot be fetched or trusted | The update stops before the main package transaction | The keyring step verifies the pinned Omarchy key, ARM trust on ARM systems, and installed platform keyrings |
| A migration exits with an error or waits for a package | That migration stays pending and later migrations do not run | The runner writes a marker only after success and processes files in order |
| A package-to-package conflict needs a choice | The update cannot safely continue | The conflict path requires an interactive terminal and never guesses |
| Another update is already running | The new update stops without entering the existing transaction | The lock uses a non-blocking open-file lock and reports the holder PID for diagnosis |
| AUR access is unavailable | Optional AUR updates are skipped while the core update can finish | The AUR step checks repository access and reports the skip |
A mise tool update fails | The system update can still reach boot verification, but the tool remains out of date | The update warns about the failure and gives a separate retry command |
| The initramfs log lacks its expected success message | The user may restart with an image that needs review | The log analyzer warns before restart and accounts for platform-specific hook output |
| The managed boot package cannot be resolved | Boot verification cannot prove the boot chain | The update warns about the unsupported verification path instead of treating it as a successful proof |
| A login notifier sees pending migrations while an update holds the lock | No duplicate migration prompt is sent | The notifier checks the per-user update lock before sending |
| A package-install migration finds the preinstall-removal marker | The optional package is not reinstalled | The migration checks the user's recorded opt-out state before adding the package |
| A hardware migration targets a different CPU, GPU, or device model | The migration makes no change and completes for that user | The migration exits before package or system-state changes when its hardware predicate is false |
| A firmware or keyboard migration cannot rebuild its boot image | The hardware change remains pending and reboot is not yet safe for that change | The migration checks the rebuild result and writes its machine-wide marker only after success |
| A user has already selected a new application or editor | An update could silently replace the user’s choice | Preference migrations add defaults only when the relevant choice is absent |
| Qualcomm device trees are missing or the UKI list cannot be written safely | The boot image keeps its prior device-tree selection and the image build continues | The boot hook leaves the configuration unchanged and exits successfully when it cannot refresh the managed list |
Key files
| File | Why to read it |
|---|---|
bin/omarchy-update | Main update lifecycle, authorization phases, and reboot boundary |
bin/omarchy-update-lock | Non-overlapping update ownership and diagnostic lock state |
bin/omarchy-update-requires-free-space | Space guard before the update starts |
bin/omarchy-update-keyring | Signing-key preparation before the package transaction |
bin/omarchy-update-system-pkgs | Main package transaction and conflict handoff |
bin/omarchy-update-pkg-prune | Package-cache safety and cleanup policy |
bin/omarchy-update-aur-pkgs | Separate AUR maintenance after the system package transaction |
bin/omarchy-update-mise | Optional tool maintenance and its failure boundary |
bin/omarchy-update-boot | Boot-chain verification after package changes |
bin/omarchy-update-qualcomm-device-trees | Refresh of Qualcomm device-tree selections before UKI builds |
bin/omarchy-update-restart | Service restart and reboot decisions after updates |
bin/omarchy-update-available | Update availability used by the shell indicator |
bin/omarchy-migrate | Chronological migration runner and per-user markers |
| agents/…/migrations.md | Migration rules, failure behavior, and authoring model |
bin/omarchy-migrate-notify | Login-time recovery prompt for pending migrations |
bin/omarchy-channel-set | Protected channel changes and destination checks |
bin/omarchy-channel-current | Active channel decision from source and package state |
| migrations/1791382872.sh | Safe transition from shipped mise wrappers to package declarations |
| migrations/1794855305.sh | Model-specific GPU setting and retry-safe boot rebuild |
| migrations/1795274792.sh | Snapdragon boot setup and machine-wide rebuild state |
| migrations/1795354093.sh | Intel GPU memory setting and retry-safe rebuild |
| migrations/1795380483.sh | User shell layout migration that preserves linked files |
| migrations/1795441583.sh | Existing-install service activation with package-state gating |
bin/omarchy-upgrade-to-quattro | One-way transition from legacy installs to the package-backed layout |