Harald Hoyer fe20ad
From 035b40d564a47fb53a78f08a7bbf218a6920061d Mon Sep 17 00:00:00 2001
Harald Hoyer fe20ad
From: Khem Raj <raj.khem@gmail.com>
Harald Hoyer fe20ad
Date: Wed, 21 Aug 2013 20:35:44 -0700
Harald Hoyer fe20ad
Subject: [PATCH] use CAP_MKNOD ConditionCapability
Harald Hoyer fe20ad
Harald Hoyer fe20ad
Fixes errors seen when booting VMs on QEMU like
Harald Hoyer fe20ad
Harald Hoyer fe20ad
systemd[1]: kmod-static-nodes.service: main process exited, code=exited, status=203/EXEC
Harald Hoyer fe20ad
systemd[1]: Failed to start Create list of required static device nodes for the current kernel.
Harald Hoyer fe20ad
systemd[1]: Unit kmod-static-nodes.service entered failed state.
Harald Hoyer fe20ad
Harald Hoyer fe20ad
Make sure that mknod capability is available
Harald Hoyer fe20ad
Harald Hoyer fe20ad
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Harald Hoyer fe20ad
---
Harald Hoyer fe20ad
 units/kmod-static-nodes.service.in | 2 +-
Harald Hoyer fe20ad
 1 file changed, 1 insertion(+), 1 deletion(-)
Harald Hoyer fe20ad
Harald Hoyer fe20ad
diff --git a/units/kmod-static-nodes.service.in b/units/kmod-static-nodes.service.in
Harald Hoyer fe20ad
index 98664ea..d8a8420 100644
Harald Hoyer fe20ad
--- a/units/kmod-static-nodes.service.in
Harald Hoyer fe20ad
+++ b/units/kmod-static-nodes.service.in
Harald Hoyer fe20ad
@@ -9,7 +9,7 @@
Harald Hoyer fe20ad
 Description=Create list of required static device nodes for the current kernel
Harald Hoyer fe20ad
 DefaultDependencies=no
Harald Hoyer fe20ad
 Before=sysinit.target systemd-tmpfiles-setup-dev.service
Harald Hoyer fe20ad
-ConditionVirtualization=!container
Harald Hoyer fe20ad
+ConditionCapability=CAP_MKNOD
Harald Hoyer fe20ad
 
Harald Hoyer fe20ad
 [Service]
Harald Hoyer fe20ad
 Type=oneshot