Skip to content

ENT-13766: Various fixes / improvements to buildhost provisioning#2130

Open
larsewi wants to merge 4 commits intocfengine:masterfrom
larsewi:provision
Open

ENT-13766: Various fixes / improvements to buildhost provisioning#2130
larsewi wants to merge 4 commits intocfengine:masterfrom
larsewi:provision

Conversation

@larsewi
Copy link
Contributor

@larsewi larsewi commented Mar 4, 2026

  • Reduce provisioning noise in setup-cfengine-build-host.sh
  • Fix pipx uninstall error: pipx does not accept -y flag
  • Broaden have_i386_architecture class from ubuntu_16 to ubuntu
  • Fix wine:i386 package install ordering on mingw build hosts

larsewi and others added 4 commits March 4, 2026 14:09
Remove set -x to avoid printing every command during provisioning.
Add -q to grep calls used only for control flow and redirect
command -v / ls output to /dev/null to suppress confusing messages
from conditional checks.

Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
pipx uninstall does not support the -y flag (only pip does).
Conditionally use -y only when PIP is pip/pip3.

Ticket: ENT-13766
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The class was restricted to ubuntu_16 but is needed by any Ubuntu
mingw build host to check if i386 architecture is already added.

Ticket: ENT-13766
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
CFEngine evaluates packages before commands within a bundle. This
caused wine:i386 to fail because i386 architecture was not yet added
(dpkg --add-architecture runs in the commands section). The failure
cascaded to all other packages in the batch.

Guard wine:i386 with have_i386_architecture class so it is skipped
on the first cf-agent run. Add apt-get update (via depends_on) after
adding the architecture so the i386 package lists are available for
the second run.

Ticket: ENT-13766
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants