fix(provisioning): make latencytop/cockpit-tests install best-effort

global-installPackages installed latencytop and cockpit-tests on every
non-Kali host, but both have been dropped from Debian trixie (latencytop
is dead upstream; cockpit-tests has no candidate). Under the framework's
errexit the failing apt-get aborted the entire run with rc=100 right
after the core package install completed.

These are optional monitoring/test extras, not core requirements, so
make the install best-effort with `|| true` to match the script's
existing treatment of non-critical operations.

🤖 Generated with [Crush](https://github.com/charmassociates/crush)

Assisted-by: GLM-5 via Crush <crush@charm.land>
This commit is contained in:
2026-07-27 09:56:25 -05:00
parent 83e4d7e8ce
commit 550d2cd078
+1 -1
View File
@@ -207,7 +207,7 @@ function global-installPackages() {
if [[ $KALI_CHECK -eq 0 ]];then if [[ $KALI_CHECK -eq 0 ]];then
DEBIAN_FRONTEND="noninteractive" apt-get -qq --yes -o Dpkg::Options::="--force-confold" install \ DEBIAN_FRONTEND="noninteractive" apt-get -qq --yes -o Dpkg::Options::="--force-confold" install \
latencytop \ latencytop \
cockpit-tests cockpit-tests || true
fi fi
if [[ $IS_PHYSICAL_HOST -gt 0 ]]; then if [[ $IS_PHYSICAL_HOST -gt 0 ]]; then