aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-containers/lxcfs/files/systemd-ensure-var-lib-lxcfs-exists.patch
blob: 5e5673acf81b576dca890cefc5208d3788091a6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From 89bf4b64e810e174068e7861490e6d6ab2d14854 Mon Sep 17 00:00:00 2001
From: Mark Asselstine <mark.asselstine@windriver.com>
Date: Mon, 10 Sep 2018 15:01:54 -0400
Subject: [PATCH] systemd: ensure /var/lib/lxcfs exists

If the directory doesn't exist the service will fail to start.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
---
 config/init/systemd/lxcfs.service | 1 +
 1 file changed, 1 insertion(+)

diff --git a/config/init/systemd/lxcfs.service b/config/init/systemd/lxcfs.service
index 95e3ee9..d887203 100644
--- a/config/init/systemd/lxcfs.service
+++ b/config/init/systemd/lxcfs.service
@@ -5,6 +5,7 @@ Before=lxc.service
 Documentation=man:lxcfs(1)
 
 [Service]
+ExecStartPre=-/bin/mkdir /var/lib/lxcfs
 ExecStart=/usr/bin/lxcfs /var/lib/lxcfs/
 KillMode=process
 Restart=on-failure
-- 
2.7.4