Repository navigation
Retry systemd reload in the fingerprint recovery migration - #14260
Conversation
A failed reload leaves the migration pending with the drop-in already installed. Reload existing configuration on retry so completion means systemd has applied the stop timeout, while preserving administrator changes. Co-Authored-By: Codex Medium <317366263+omarchybot@users.noreply.github.com>
|
|
GPT-6 in Codex reviewed this follow-up with Codex Medium. Its second opinion identified the skipped reload on retry. Greptile's later-user sudo finding was also verified and corrected. Both reviewers are credited on the commits carrying their contributions; Greptile does not disclose its model. Codex Medium's final source review found no further actionable defects; where it agreed, independence is not guaranteed. On disposable Omarchy ISO workers, the regressions failed with the original skipped-reload code and the unconditional-reload intermediate head, then passed with the final fix. Native systemd 261 detected the first newly installed drop-in as stale after an injected reload failure; retry applied the three-second timeout. Subsequent runs with all sudo refused completed successfully, including when the harmless test service was inactive. The native check retargeted only the queried service name in a temporary migration copy because the worker has no fingerprint daemon or physical reader. Query failure remains a migration failure, and existing files are preserved. The complete suite retains only the preexisting failures: CLI's VS Code fixture, both kernel migration fixtures, captive-portal QML, background preparation state, and the passwordless package lifecycle. The first five are repaired in #14259; the unchanged lifecycle check passes against companion omarchy-pkgs #257. No new failure appeared. This follow-up is ready for maintainer review; nothing was merged. |
Migration completion belongs to each user, while the systemd repair is machine-wide. Query systemd reload state without elevation and reload only stale configuration, so interrupted repairs still retry and later users can complete without sudo. A failed state query remains a migration failure. Co-Authored-By: Greptile <165735046+greptile-apps[bot]@users.noreply.github.com>
The fingerprint recovery migration installs its systemd stop-timeout drop-in before reloading systemd. If reload fails or the migration is interrupted, the next run sees the installed file and skips reload, allowing the migration to complete without applying the timeout.
Preserve the existing hook and drop-in contents, then query systemd's reload state without elevation. Reload only stale configuration, so a failed or interrupted repair is retried while later users can complete an already-applied machine-wide repair without sudo. Query and reload failures keep the migration pending.
Follow-up to #7158.