Skip to content

Commit bbcdce5

Browse files
committed
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
1 parent e662181 commit bbcdce5

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

manifests/params.pp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,10 @@
344344
# https://github.com/docker/docker/issues/4734
345345
$prerequired_packages = $facts['os']['family'] ? {
346346
'Debian' => $facts['os']['name'] ? {
347-
'Debian' => ['cgroupfs-mount',],
347+
'Debian' => $facts['os']['distro']['codename'] ? {
348+
/bullseye|bookworm/ => ['cgroupfs-mount',],
349+
default => []
350+
},
348351
'Ubuntu' => ['cgroup-lite', 'apparmor',],
349352
default => [],
350353
},

0 commit comments

Comments
 (0)