Skip to content

Fixed cleanup of stale cfbuild packages on build hosts - #2427

Open
larsewi wants to merge 1 commit into
cfengine:masterfrom
larsewi:erase-stale-cfbuild-packages
Open

Fixed cleanup of stale cfbuild packages on build hosts#2427
larsewi wants to merge 1 commit into
cfengine:masterfrom
larsewi:erase-stale-cfbuild-packages

Conversation

@larsewi

@larsewi larsewi commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

zypper has no uninstall command, so erase-packages silently did nothing on SUSE. The || true guard hid the error.

The cleanup also ran too late. It sat inside the cf-remote branch, which the CentOS 6 and SUSE 12 paths never reach because they install the agent directly.

Leftover cfbuild-* packages own files under /var/cfengine. Installing cfengine-nova then aborts on file conflicts, because zypper install -y does not auto-answer the file conflict prompt.

Signed-off-by: Lars Erik Wik lars.erik.wik@northern.tech

Backported to:

zypper has no uninstall command, so erase-packages silently did nothing
on SUSE. The || true guard hid the error.

The cleanup also ran too late. It sat inside the cf-remote branch, which
the CentOS 6 and SUSE 12 paths never reach because they install the
agent directly.

Leftover cfbuild-* packages own files under /var/cfengine. Installing
cfengine-nova then aborts on file conflicts, because zypper install -y
does not auto-answer the file conflict prompt.

Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
@larsewi

larsewi commented Aug 13, 2026

Copy link
Copy Markdown
Contributor Author

@cf-bottom Jenkins please :)

@cf-bottom

Copy link
Copy Markdown

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.

3 participants