feat(hardening): install_cpu_microcode on PVE and PBS, 0.19.0 (NetOrk/netork#2838)
driver / lint (pull_request) Successful in 14s
driver / standard (pull_request) Successful in 15s
driver / lowest (pull_request) Successful in 27s
driver / types (pull_request) Successful in 50s
driver / test (3.12) (pull_request) Successful in 1m10s
driver / test (3.13) (pull_request) Successful in 59s
driver / build (pull_request) Successful in 24s
driver / security (pull_request) Successful in 51s
CI / driver (pull_request) Successful in 1m33s
driver / publish (pull_request) Skipped

Both drivers mix in napalm-device-types' CpuMicrocodeMixin (4.53.0). A Proxmox
install enables no non-free-firmware, where intel-microcode and
amd64-microcode live: it is added to Debian's own sources, never Proxmox's.
_reload_package_index runs apt-get update over the exec path and waits for
it, as the API's apt/update only starts a task the install would race.
This commit is contained in:
Christian Manivong committed 2026-11-29 00:07:29 +01:00
1 parent 0598a183df
commit 7e300c740e
7 files changed
+95 -4

No files matched your search

+8
View File
@@ -261,6 +261,14 @@ class ProxmoxHostMixin:
def _write_apt_file(self, path: str, content: str) -> FixStepOutcomeDict:
return self._write_root_file(path, content)
def _reload_package_index(self) -> FixStepOutcomeDict:
"""``CpuMicrocodeMixin``'s index load (NetOrk/netork#2838): ``apt-get update`` on the
exec path, done when it returns. ``refresh_available_updates`` only starts the API's
task, and the install that follows would race it."""
return self._step(
"DEBIAN_FRONTEND=noninteractive apt-get update", "package index loaded again"
)
def _allow_sources(
self, allowed: list[str], port: int, proto: str, purpose: str
) -> FixStepOutcomeDict: