Summary: | Enable to choose cgroups hierarchies for systemd-nspawn | ||
---|---|---|---|
Product: | systemd | Reporter: | Léo Gillot-Lamure <leo.gillot> |
Component: | general | Assignee: | Lennart Poettering <lennart> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | enhancement | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
Patch delivered
With STRV_FOREACH v3 |
Description
Léo Gillot-Lamure
2012-04-10 08:15:42 UTC
Yupp, makes a lot of sense, happy to take a patch! Created attachment 59801 [details] [review] Patch delivered Here is the patch. It is made against v44 but seems to apply cleanly on master. I didn't build the manpage (dunno how to make it without making the whole thing), so i'm not *certain* there is no syntax error. This patch does not verify if the specified controllers exist so if you enter "-C lol,blah" it will create /sys/fs/cgroup/{lol,blah}/user/<user>/<session>/nspawn-<pid>/tasks and this won't be wiped at the exit of the container. Also, if you enter contrived inputs like "-C ," it will crash with "Assertion 'controller' failed at src/cgroup-util.c:693, function cg_create_and_attach(). Aborting." Created attachment 59804 [details] [review] With STRV_FOREACH Created attachment 59805 [details] [review] v3 Thanks, applied with minor changes! |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.