Subject: bug#597: debian-podman-config-override: Podman missing cgroup mount

From: Hannah Rittich <[email-masked]>
Date: Thu, 5 Aug 2021 13:22:23 +0200

Package: debian-podman-config-override
Version: 2.1
Severity: normal
X-Debbugs-Cc: [email-masked]

I was setting up a minimal installation of chimaera to test the new 
`debian-podman-config-override` package. On this system, running a 
simple container with podman fails.

     $ podman pull docker.io/dyne/devuan:beowulf
     ...
     $ podman run -ti --rm devuan:beowulf
     Error: OCI runtime error: invalid file system type on '/sys/fs/cgroup'

I had not seen this error message when testing the configuration that is 
now in `debian-podman-config-override`. When testing earlier, I was 
running a full desktop installation, and it turns out that `elogind` 
mounts the cgroup filesystem. Thus, installing `elogind` and restarting 
allows podman to run.

Instead of `elogind`, it is also possible to install `cgroupfs-mount` or 
`cgmanager`. Maybe there are more packages that mount the cgroup filesystem.

To improve the out-of-the-box experice of chimaera, I would suggest to 
make `debian-podman-config-override` to depend on a package that mounts 
the cgroup filesystem. I would suggest to make the package depend on 
`cgroupfs-mount`. It would be possible, however, to just require that 
any of the above-mentioned packages is installed.

-- System Information:
Distributor ID:	Devuan
Description:	Devuan GNU/Linux 4 (chimaera)
Release:	4
Codename:	n/a
Architecture: x86_64

Kernel: Linux 5.10.0-8-amd64 (SMP w/1 CPU thread)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled

-- no debconf information

---

From: Mark Hindley <[email-masked]>
Date: Thu, 5 Aug 2021 13:39:10 +0100

Hannah,

Thanks for this.

On Thu, Aug 05, 2021 at 01:22:23PM +0200, Hannah Rittich wrote:
> `debian-podman-config-override` package. On this system, running a simple
> container with podman fails.
> 
> I had not seen this error message when testing the configuration that is now
> in `debian-podman-config-override`. When testing earlier, I was running a
> full desktop installation, and it turns out that `elogind` mounts the cgroup
> filesystem. Thus, installing `elogind` and restarting allows podman to run.
> 
> To improve the out-of-the-box experice of chimaera, I would suggest to make
> `debian-podman-config-override` to depend on a package that mounts the
> cgroup filesystem. I would suggest to make the package depend on
> `cgroupfs-mount`. It would be possible, however, to just require that any of
> the above-mentioned packages is installed.

Yes, I think allowing any is the way to go which should provide the greatest
flexibility.

I note that cgmanager is not present in debian bullseye or later so appears to
be on its way out[1]. The best solution is probably to depend on (or recommend?)
elogind | cgroupfs-mount | cgmanager.

Mark

[1]  https://tracker.debian.org/pkg/cgmanager

---

From: Hannah Rittich <[email-masked]>
Date: Thu, 5 Aug 2021 16:12:05 +0200

> elogind | cgroupfs-mount | cgmanager.

Sounds good. I would say, recommending is enough, because if the user 
wants they can still mount cgroupfs manually.

---

From: "Devuan bug Tracking System" <[email-masked]>
Date: Thu, 05 Aug 2021 14:42:05 +0000

This is an automatic notification regarding your bug report
which was filed against the debian-podman-config-override package:

#597: debian-podman-config-override: Podman missing cgroup mount

It has been closed by [email-masked].

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact [email-masked] by
replying to this email.

-- 
597: https://bugs.devuan.org/cgi/bugreport.cgi?bug=597
Devuan Bug Tracking System
Contact [email-masked] with problems

Subject: #597: fixed in src:debian-config-override version 2.2
From: [email-masked]
To: [email-masked]
Date: Thu, 05 Aug 2021 14:33:53 +0000

Version: 2.2

Source package debian-config-override (2.2) added to Devuan suite unstable.

This closes bug report 597.

Thanks

DAK managing the Devuan archive

Format: 1.8
Date: Thu, 05 Aug 2021 13:42:23 +0100
Source: debian-config-override
Architecture: source
Version: 2.2
Distribution: unstable
Urgency: medium
Maintainer: Mark Hindley <[email-masked]>
Changed-By: Mark Hindley <[email-masked]>
Closes: 597
Changes:
 debian-config-override (2.2) unstable; urgency=medium
 .
   * debian-podman-config-override: podman requires mounted /sys/fs/cgroup,
     so recommend elogind, cgroupfs-mount or cgmanager (Closes: #597).
Checksums-Sha1:
 1acc684cb5a90ec4780eab2c10f444b9217eb88b 1514 debian-config-override_2.2.dsc
 4451014c889e3ffe88ccf196308527ae77ba9db1 2316 debian-config-override_2.2.tar.xz
 72d2fb8034ccde3ab31a45704c71110de2a065c3 5245 debian-config-override_2.2_source.buildinfo
Checksums-Sha256:
 825d6aac46a9c1a43e27c58c003fdfd52a5f0d278d5a4567e3ad728f183448d2 1514 debian-config-override_2.2.dsc
 aa5b519bca2780d5663dcc6826e7bf966195b9287f51c43ba02c3a9b4fd61ed0 2316 debian-config-override_2.2.tar.xz
 034a2830d767d85761e15238839dbb100fd23bf7f19a3ca02d755a5a60c7e5f5 5245 debian-config-override_2.2_source.buildinfo
Files:
 bba4d89118fcb2554e497112ff016179 1514 misc optional debian-config-override_2.2.dsc
 e9cb31ce69b6616ec750164ed8336211 2316 misc optional debian-config-override_2.2.tar.xz
 2377e6713861ba232c3a0fb7e670b511 5245 misc optional debian-config-override_2.2_source.buildinfo

Subject: debian-podman-config-override: Podman missing cgroup mount
From: Hannah Rittich <[email-masked]>
To: Devuan Bug Tracking System <[email-masked]>
Date: Thu, 5 Aug 2021 13:22:23 +0200

-- System Information:
Distributor ID:	Devuan