feat(updates): the update history from apt's own log, with Proxmox VE 9.3's ids (NetOrk/netork#2728)

AptHistoryMixin implements get_update_history over run_command: history.log and its
rotations in one round trip as the login user, root only for a file that user may not
read. Dates are read in the host's zone; a transaction's id is its start and the number
of earlier ones with that start in the same file, as GET /nodes/{node}/apt/history names
it. Malformed blocks are left out, a report cut short raises.
This commit is contained in:
christianmanivong committed 2026-11-26 23:04:41 +01:00
1 parent 5985c87cc8
commit e3420269b7
6 files changed
+843

No files matched your search

+1
View File
@@ -161,6 +161,7 @@ the driver.
| `virtual_ips` | vip-manager, keepalived, awk |
| `system_identity` | SMBIOS via sysfs and `dmidecode` |
| `package_updates` | apt and dnf output |
| `apt_history` | apt's history log, `zcat`, `/etc/localtime` |
| `apt_releases` | apt's source files (one-line and deb822), `/etc/os-release`, `apt-helper` |
| `ssh_server` | OpenSSH (`sshd -T`, `sshd -t`, `sshd_config`); which algorithms to drop stays the caller's |
| `terminal` | ANSI escape codes in shell output |