Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions ci/setup-cfengine-build-host.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,13 @@ function cleanup() {
set -e
if command -v apt >/dev/null 2>&1; then
# workaround for CFE-4544, remove scriptlets call systemctl even when systemctl is-system-running returns false
rm /bin/systemctl
ln -s /bin/echo /bin/systemctl
# Replace systemctl with a no-op stub that always succeeds. We can't
# symlink to /bin/echo (or /bin/true): on Ubuntu 26 coreutils is the
# single multi-call uutils binary that dispatches on argv[0], so it
# would fail with "coreutils: unknown program 'systemctl'".
rm -f /bin/systemctl
printf '#!/bin/sh\nexit 0\n' > /bin/systemctl
chmod +x /bin/systemctl
apt remove -y cfengine-nova || true
elif command -v yum >/dev/null 2>&1; then
yum erase -y cfengine-nova || true
Expand Down
Loading