Skip to content

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

Merged
larsewi merged 1 commit into
cfengine:masterfrom
larsewi:erase-stale-cfbuild-packages
Aug 17, 2026
Merged

Fixed cleanup of stale cfbuild packages on build hosts#2427
larsewi merged 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

@larsewi
larsewi merged commit e4b8f91 into cfengine:master Aug 17, 2026
31 of 33 checks passed
@larsewi
larsewi deleted the erase-stale-cfbuild-packages branch August 17, 2026 07:51
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