Optionally refresh apt package lists before each report
CI / tests (Python 3.10) (pull_request) Successful in 15s
CI / tests (Python 3.11) (pull_request) Successful in 15s
CI / tests (Python 3.12) (pull_request) Successful in 15s
CI / tests (Python 3.13) (pull_request) Successful in 15s
CI / lint (pull_request) Successful in 3s

The agent's dist-upgrade simulation already finds new-ABI kernels and
security updates, but only once apt's lists know about them. Debian
doesn't refresh lists by default, so a kernel security release could
stay invisible until someone ran apt update.

install.sh --with-apt-update adds a marker that enables
kernelwatch-apt-update.service, a sandboxed root oneshot the agent pulls
in before each report. Failures (no network, apt lock held) are ignored
so the report still goes out. deploy.sh now ships the unit; a test keeps
deploy.sh's file list in sync with what install.sh uses.

Agent 0.3.2, server 0.3.3.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
patrickandClaude Opus 5.5 committed 2026-10-17 17:13:55 -04:00
1 parent e9c8f889c7
commit f35cc007f5
8 files changed
+104 -11

No files matched your search

+2 -2
View File
@@ -1,7 +1,7 @@
[Unit]
Description=Report kernel and update status to kernelwatch
Wants=network-online.target kernelwatch-needrestart.service
After=network-online.target apt-daily.service kernelwatch-needrestart.service
Wants=network-online.target kernelwatch-needrestart.service kernelwatch-apt-update.service
After=network-online.target apt-daily.service kernelwatch-needrestart.service kernelwatch-apt-update.service
[Service]
Type=oneshot