Systemd: Have option to force nspawn into unified cgroup hierarchy mode without checks

Created on 23 Apr 2019  路  3Comments  路  Source: systemd/systemd

UNIFIED_CGROUP_HIERARCHY=1 is documented to force nspawn into unified cgroup hierarchy mode, however it still goes through a code path to check files in an attempt to detect the version of systemd installed (https://github.com/systemd/systemd/blob/master/src/nspawn/nspawn.c#L445) and could error out if the files are not there. We would prefer to skip this check if the environment variable is provided, or make a new option to do so. Can work on patches if this sounds like a reasonable request.

bug 馃悰 nspawn

Most helpful comment

hmm, this actually feels like a bug. If the env var is specified it should take precedence, and the payload shouldn't matter. hence the behaviour you want shouldn't be an option, but the unconditoinal logic...

All 3 comments

hmm, this actually feels like a bug. If the env var is specified it should take precedence, and the payload shouldn't matter. hence the behaviour you want shouldn't be an option, but the unconditoinal logic...

And yupp, happy to take a patch to fix this, of course!

False alarm here. Environment variable is taking precedence, just had a user error. Sorry!

Was this page helpful?
0 / 5 - 0 ratings