chiark / gitweb /
use CAP_MKNOD ConditionCapability
authorKhem Raj <raj.khem@gmail.com>
Thu, 22 Aug 2013 03:35:44 +0000 (20:35 -0700)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 22 Aug 2013 04:52:14 +0000 (00:52 -0400)
Fixes errors seen when booting VMs on QEMU like

systemd[1]: kmod-static-nodes.service: main process exited, code=exited, status=203/EXEC
systemd[1]: Failed to start Create list of required static device nodes for the current kernel.
systemd[1]: Unit kmod-static-nodes.service entered failed state.

Make sure that mknod capability is available

Signed-off-by: Khem Raj <raj.khem@gmail.com>
units/kmod-static-nodes.service.in

index 98664ea..d8a8420 100644 (file)
@@ -9,7 +9,7 @@
 Description=Create list of required static device nodes for the current kernel
 DefaultDependencies=no
 Before=sysinit.target systemd-tmpfiles-setup-dev.service
-ConditionVirtualization=!container
+ConditionCapability=CAP_MKNOD
 
 [Service]
 Type=oneshot