Treat Ubuntu Livepatch as cover for pending kernel reboots

New livepatch_* report fields. When Livepatch is healthy (applied or
nothing-to-apply, checked, supported) and the kernel's support end date is
more than 14 days away, a pending kernel reboot, or a reboot-required file
caused only by linux-* packages, becomes a note instead of the reboot status.
Anything else about Livepatch gives no cover and is noted.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
patrickandClaude Sonnet 5.5 committed 2026-10-29 21:35:42 -04:00
1 parent 40bfdc3236
commit 4fa86de11f
5 files changed
+142 -2

No files matched your search

+3
View File
@@ -496,6 +496,9 @@ class Handler(BaseHTTPRequestHandler):
field("Installed kernels", r.get("kernels_installed"), code=True),
field("needrestart", None if r.get("needrestart_ksta") is None else
f"KSTA={r['needrestart_ksta']} expected={r.get('needrestart_kexp') or '?'}"),
field("Livepatch", None if r.get("livepatch_state") is None else
f"{r['livepatch_state']}, {r.get('livepatch_fix_count') or 0} fixes applied, "
f"{r.get('livepatch_supported') or '?'} until {r.get('livepatch_upgrade_required') or '?'}"),
field("Kernel packages upgradable", r.get("kernel_upgradable"), code=True),
field("Updates pending", r.get("upgradable_count")),
field("Security updates", r.get("security_count")),