arch-updater 2.1.0: maintenance section (cache prune, orphans, fwupd), keyring-first, free-space gate, sleep inhibitor, run-log analysis - #529
Open
UmedjonBA wants to merge 1 commit into
Conversation
…ing-first, free-space gate, sleep inhibit, run-log analysis - Maintenance section under the package list: cache size with one-click paccache prune, orphaned packages with confirmed pacman -Rns removal, and a firmware-updates shortcut when fwupd is installed. - Refresh archlinux-keyring right before each update run (toggleable). - Refuse to start an update when the root filesystem is too full. - Hold a systemd sleep/idle inhibitor during background runs. - Scan the finished run's log for known failure signatures (failed initramfs generation, failed transactions, signature errors) and warn in the panel - critically for the initramfs case. Version 2.1.0. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Contributor
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.
Plugin
yuuto/arch-updaterplugin.toml)What it does
Adds a maintenance layer around the updater, 2.0.1 → 2.1.0:
paccachekeeps a configurable number of versions; the dry-run count and freed space are shown up front), orphaned packages (pacman -Qtdq) with a confirmedpacman -Rnsremoval (same two-click arm as rollback), and a firmware-updates shortcut whenfwupdmgris installed (opens a terminal — firmware flashing is interactive by nature).pacman -Sy --needed archlinux-keyring, so a machine that skipped updates for a few weeks doesn't die on "signature is unknown trust".systemd-inhibit --what=sleep:idle, so a closed laptop lid can't interrupt a transaction.Everything is behind settings (
maintenance_enabled,cache_keep,keyring_first,inhibit_sleep,min_free_mib) with the behavior-preserving defaults documented in the README;min_free_mib = 0disables the gate, and turning the maintenance section off skips its scans entirely.External dependencies
All declared in
dependencies: existing ones plusdu,df,cut(cache/free-space measurements),systemd-inhibit(sleep inhibitor, skipped when absent).paccachecomes with the already-requiredpacman-contrib.fwupdmgris deliberately not independencies: it is optional, feature-gated oncommandExists, and documented as such in the README.Testing
Exercised live on a real system (Arch, niri): full check cycle with the maintenance scan (panel reported a 12.2 GiB cache with 397 prunable versions / 7 GiB reclaimable, 17 orphans, correct absence of the fwupd row on a machine without fwupd),
prune_cache/remove_orphans/maintenanceIPC actions, settings toggles for the new keys,noctalia plugins lint(0/0) andluau-analyzeclean. The free-space gate and log-analysis grep patterns were additionally verified against real command output (paccache -dk2dry-run format,df -Pk, pacman transaction/mkinitcpio log lines).Screenshots / Videos
Checklist
Ready-for-review requirement: Every box in this section must be checked. If any statement is not true, keep the
pull request as Draft. An explanation does not replace a required check.
idafter the/inplugin.tomlexactly.plugin.toml,README.md,thumbnail.webp, andtranslations/en.json.README.mdfollows theREADME template, documents
every entry id and dependency, and includes exact panel IPC commands and launcher prefixes where applicable.
thumbnail.webpwith the thumbnail generator.versionfollows semver and is bumped in this PR;plugin_apiis the oldest API level this plugin requires.understand that language well enough to review and maintain it (no unreviewed machine/LLM translations).
catalog.toml; CI generates it.Code review attestation
Plugins run as trusted, unsandboxed Luau in the user's session. Confirm:
Ready-for-review requirement: Every attestation below must be checked.
licensedeclared inplugin.toml.