Skip to content

Commit fd4b5d0

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 6a45fd1 commit fd4b5d0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

manifests/params.pp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,10 @@
360360
# https://github.com/docker/docker/issues/4734
361361
$prerequired_packages = $facts['os']['family'] ? {
362362
'Debian' => $facts['os']['name'] ? {
363-
'Debian' => ['cgroupfs-mount',],
363+
'Debian' => $facts['os']['distro']['codename'] ? {
364+
/bullseye|bookworm/ => ['cgroupfs-mount',],
365+
default => []
366+
},
364367
'Ubuntu' => ['cgroup-lite', 'apparmor',],
365368
default => [],
366369
},

0 commit comments

Comments
 (0)