Skip to content

remove dependency on cgroupfs-mount for Debian trixie #1024

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zen-fu
Copy link

@zen-fu zen-fu commented Jul 22, 2025

Summary

remove dependency on cgroupfs-mount for Debian trixie, because that package isn't available in that release.

Related Issues (if any)

Fixes #1023

Checklist

  • 🟢 Spec tests.
  • 🟢 Acceptance tests.
  • Manually verified. (For example puppet apply)

@zen-fu zen-fu requested a review from a team as a code owner July 22, 2025 18:09
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@@ -360,7 +360,7 @@
# https://github.com/docker/docker/issues/4734
$prerequired_packages = $facts['os']['family'] ? {
'Debian' => $facts['os']['name'] ? {
'Debian' => ['cgroupfs-mount',],
'Debian' => $facts['os']['distro']['codename'] ? { 'bookworm' => ['cgroupfs-mount',], 'trixie' => [] },

Choose a reason for hiding this comment

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

Suggested change
'Debian' => $facts['os']['distro']['codename'] ? { 'bookworm' => ['cgroupfs-mount',], 'trixie' => [] },
'Debian' => $facts['os']['distro']['codename'] ? {
'trixie' => [],
default => ['cgroupfs-mount',],
},

Copy link
Author

Choose a reason for hiding this comment

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

Hello, @charlyforot, and thanks for the suggestion!

As i don't see the cgroupfs-mount package available in sid (ref), i suggest we keep a default of no packages, thinking about the future and assuming for now that only bookworm will have that package.

Does that make sense?

If so, then this is what we'd want:

Suggested change
'Debian' => $facts['os']['distro']['codename'] ? { 'bookworm' => ['cgroupfs-mount',], 'trixie' => [] },
'Debian' => $facts['os']['distro']['codename'] ? {
'bookworm' => ['cgroupfs-mount',],
default => []
},

How does that sound?

Copy link
Author

Choose a reason for hiding this comment

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

As i don't see the cgroupfs-mount package available in sid (ref), i suggest we keep a default of no packages, thinking about the future and assuming for now that only bookworm will have that package.

i just implemented something like that, even though a bit different than in my comment above, to capture the current state of package availability in Debian, so:

  • if codename is bullseye (current oldstable) or bookworm (current stable), we require the package
  • else, we don't.

Note that in some days bullseye will become oldoldstable, bookworm will become oldstable, and trixie will become stable, so the proposed code should be good at least for the life of the next stable release, that is, a couple of years.

i'm actually unsure about whether we should introduce the requirement for bullseye, as it was not there before and will impact any bullseye installation that uses this module.

At this moment, the `cgroupfs-mount` package only exists in Debian up to
Bookworm, so we must not require that package for newer releases.

Fixes puppetlabs#1023
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.

package cgroupfs-mount is not available in Debian Trixie
3 participants