Repository navigation
Enable first-run units one at a time, and test that units are shipped - #14796
Merged
Merged
Conversation
The Thunderbolt approval watcher is enabled by its setup command, a migration and first-run, but no package put it in a user unit folder and nothing installed it. On edge the migration failed with "Unit omarchy-thunderbolt-authorization.service does not exist", so every later migration stayed pending. First-run failed too, and enabled none of its units: given a list, systemctl enables nothing when one unit is unknown. The units are now shipped by the settings packages (omarchy-pkgs#922). Here, first-run enables its units one at a time, so a unit missing from a build costs only that unit, and config-test fails when a unit under default/systemd/user is enabled without being shipped or installed first.
emirb
force-pushed
the
fix/user-units-not-shipped
branch
from
October 10, 2026 00:20
55d911d to
55fc353
Compare
Contributor
|
…n to a clean run Naming a unit's source in default/ counted as installing it, so a command that never copied the unit, or copied it after enabling it, passed. Look for the install or cp of that source ahead of the enable instead. The first-run test accepted any script that tried three of the units. It now requires one enable --now per unit and, with each unit unknown in turn, exactly the calls of a clean run minus that unit.
emirb
force-pushed
the
fix/user-units-not-shipped
branch
from
October 10, 2026 00:27
8bff442 to
5489418
Compare
This was referenced Oct 12, 2026
4 of 5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #10484
Problem
omarchy-thunderbolt-authorization.serviceis enabled as a user unit by its setup command, by migration1790344599and by first-run, but the settings packages shipped it only under/usr/share/omarchy/default/systemd/user/, where systemd does not look. On edge (r6856):omarchy-migratestops at1790344599withFailed to enable unit: Unit omarchy-thunderbolt-authorization.service does not exist, and every later migration stays pending.systemctlenables nothing from a list when one unit is unknown.omarchy-usb-authorization.serviceis in the same position on a fresh install.The units are shipped by omacom/omarchy-pkgs#922 (merged). This is the part that belongs here.
Change
enable-user-units.shenables its units one at a time. A unit missing from a build costs only that unit, and the step still exits non-zero so first-run retries.config-test.shfails when a unit underdefault/systemd/useris not installed by the PKGBUILD and either no command copies it out ofdefault/, or something enables it without copying it first. Naming the source is not enough: theinstallorcphas to come before the enable.first-run-test.shmakes each unit unknown in turn and requires exactly the calls of a clean run minus that unit, oneenable --nowper unit, with the theme hook still installed.Verification
config-test.shreports the Thunderbolt unit as shipped by nothing and the USB unit as enabled without being shipped. With add workspace switching keyboard shortcuts #922 it passes.--now, and on one that enables a single unit alone and batches the rest.omarchy-audio-tuning,config-test.shreportsomarchy-speaker-tuning.serviceas installed by nothing.omarchy-settings-devbuilt from add workspace switching keyboard shortcuts #922,omarchy-migrateruns the 5 pending migrations and both scripts exit 0. (The VM run used the first version of this script, which differs only in how it reports the failure.)