Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Install podman 2.0.4 from updates-testing #478

Merged
merged 1 commit into from
Aug 3, 2020

Conversation

martinpitt
Copy link
Member

This avoids running into the API breakage of 2.0.3:
containers/podman#7078

This avoids running into the API breakage of 2.0.3:
containers/podman#7078
@martinpitt
Copy link
Member Author

This should unblock cockpit-project/bots#1109

@@ -46,8 +46,10 @@ if [ -d /var/tmp/debian ]; then
systemctl disable docker.service io.podman.service
fi

# HACK: avoid leaking processes with podman < 2.0.4; see https://github.com/containers/podman/commit/2b6dd3fb4384
sed -i '/KillMode=process/d; s/Type=oneshot/Type=simple/' /lib/systemd/user/podman.service /lib/systemd/system/podman.service
if rpm -q podman >/dev/null 2>&1; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not using 'else' branch? Seems a bit clearer but just nitpick of course :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You mean for "Debian vs. not"? No particular reason, I suppose we don't support a third package format right now. The hack should disappear completely in a week anyway, though.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, as the condition is there just to avoid breaking debian. But fair enough since it is rather tmp thing :)

@martinpitt martinpitt merged commit a47f6c2 into cockpit-project:master Aug 3, 2020
@martinpitt martinpitt deleted the updates-testing branch August 3, 2020 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants