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
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:
1 parent
e9c8f889c7
commit
f35cc007f5
8 files changed
+104
-11
No files matched your search
+1
-1
@@ -19,7 +19,7 @@ here=$(cd "$(dirname "$0")" && pwd)
|
||||
CONF=${KERNELWATCH_DEPLOY_CONF:-$here/deploy.conf}
|
||||
HOSTS_FILE=${KERNELWATCH_HOSTS:-$here/hosts}
|
||||
FILES=(kernelwatch-agent kernelwatch-agent.service kernelwatch-agent.timer
|
||||
kernelwatch-needrestart.service install.sh)
|
||||
kernelwatch-needrestart.service kernelwatch-apt-update.service install.sh)
|
||||
NAME_RE='^[A-Za-z0-9][A-Za-z0-9._-]{0,62}$'
|
||||
|
||||
SERVER_URL=
|
||||
|
||||
Reference in new issue
Block a user