From fd4b5d0a9c705ab33baa3bc0b02c392ffa974f54 Mon Sep 17 00:00:00 2001 From: Zen Fu Date: Tue, 22 Jul 2025 12:39:09 -0300 Subject: [PATCH] remove dependency on cgroupfs-mount for newer Debian systems 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 #1023 --- manifests/params.pp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/manifests/params.pp b/manifests/params.pp index 940d2a5c..c43d1ba3 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -360,7 +360,10 @@ # https://github.com/docker/docker/issues/4734 $prerequired_packages = $facts['os']['family'] ? { 'Debian' => $facts['os']['name'] ? { - 'Debian' => ['cgroupfs-mount',], + 'Debian' => $facts['os']['distro']['codename'] ? { + /bullseye|bookworm/ => ['cgroupfs-mount',], + default => [] + }, 'Ubuntu' => ['cgroup-lite', 'apparmor',], default => [], },