Comment 3 for bug 2013543

Revision history for this message
Nick Rosbrook (enr0n) wrote (last edit ):

> This was implemented because some applications in the container are checking for a newer kernel version, so you have to fake it.

Hm, this sounds like it would create plenty of bugs in userspace; presumably applications have a good reason for checking the kernel version, i.e. requiring certain functionality.

Can you please enable debug logging in systemd, and then provide some logs:

# sed -i 's/^#LogLevel=info/LogLevel=debug' /etc/systemd/system.conf
# reboot
# journalctl -t systemd -b 0 > logs.txt

Also, in a container *and* on the host, can you please report the output of this script:

```
#!/bin/bash

if [[ "$(stat -fc %T /sys/fs/cgroup/)" == "cgroup2fs" ]]; then
    echo "cgroupsv2"
elif [[ -e /sys/fs/cgroup/unified ]]; then
    echo "hybrid"
else
    echo "cgroupsv1"
fi
```

Edit: I had a typo in the script. The final "else" should print "cgroupsv1", not "cgroupsv2".