[systemd-devel] [PATCH] units: disable kmod-static-nodes.service in containers

"Jóhann B. Guðmundsson" johannbg at gmail.com
Wed Aug 21 04:03:31 PDT 2013


On 08/21/2013 11:00 AM, Tom Gundersen wrote:
> Hi Zbyszek,
>
> Regarding <http://cgit.freedesktop.org/systemd/systemd/commit/?id=219061dc524368179b2e65cfe91d4d6b23396ba8>:
>
> Would it make sense to use ConditionCapability=CAP_MKNOD instead? This
> would match what is done in systemd-tmpfiles-setup-dev.service. The
> effect is currently the same (I think), but might as well be
> consistent in case things change in the future.
>

Adding ConditionCapability=CAP_MKNO to the kmod-static-nodes.service in 
the test container I got here running does not trigger
kmod-static-nodes.service: main process exited, code=exited, status=203/EXEC
[FAILED] Failed to start Create list of required static device nodes for 
the current kernel.
See 'systemctl status kmod-static-nodes.service' for details.
Unit kmod-static-nodes.service entered failed state.

Error at bootup.

So this indeed works to fix that

JBG


More information about the systemd-devel mailing list