summaryrefslogtreecommitdiffstats
path: root/units/kmod-static-nodes.service.in
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2013-08-22 05:35:44 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-08-22 06:52:14 +0200
commit67c15b9a7ac016ac5c9b885756b2eaa7f44a0509 (patch)
tree2db53f9c158ff6b3dd94c353525bba404e285cf5 /units/kmod-static-nodes.service.in
parentman: typo (diff)
downloadsystemd-67c15b9a7ac016ac5c9b885756b2eaa7f44a0509.tar.xz
systemd-67c15b9a7ac016ac5c9b885756b2eaa7f44a0509.zip
use CAP_MKNOD ConditionCapability
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>
Diffstat (limited to 'units/kmod-static-nodes.service.in')
-rw-r--r--units/kmod-static-nodes.service.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/units/kmod-static-nodes.service.in b/units/kmod-static-nodes.service.in
index 98664ea18a..d8a84204a7 100644
--- a/units/kmod-static-nodes.service.in
+++ b/units/kmod-static-nodes.service.in
@@ -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