diff options
Diffstat (limited to 'recipes-containers/lxcfs/files/systemd-ensure-var-lib-lxcfs-exists.patch')
| -rw-r--r-- | recipes-containers/lxcfs/files/systemd-ensure-var-lib-lxcfs-exists.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/recipes-containers/lxcfs/files/systemd-ensure-var-lib-lxcfs-exists.patch b/recipes-containers/lxcfs/files/systemd-ensure-var-lib-lxcfs-exists.patch new file mode 100644 index 00000000..5e5673ac --- /dev/null +++ b/recipes-containers/lxcfs/files/systemd-ensure-var-lib-lxcfs-exists.patch | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | From 89bf4b64e810e174068e7861490e6d6ab2d14854 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Mark Asselstine <mark.asselstine@windriver.com> | ||
| 3 | Date: Mon, 10 Sep 2018 15:01:54 -0400 | ||
| 4 | Subject: [PATCH] systemd: ensure /var/lib/lxcfs exists | ||
| 5 | |||
| 6 | If the directory doesn't exist the service will fail to start. | ||
| 7 | |||
| 8 | Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> | ||
| 9 | --- | ||
| 10 | config/init/systemd/lxcfs.service | 1 + | ||
| 11 | 1 file changed, 1 insertion(+) | ||
| 12 | |||
| 13 | diff --git a/config/init/systemd/lxcfs.service b/config/init/systemd/lxcfs.service | ||
| 14 | index 95e3ee9..d887203 100644 | ||
| 15 | --- a/config/init/systemd/lxcfs.service | ||
| 16 | +++ b/config/init/systemd/lxcfs.service | ||
| 17 | @@ -5,6 +5,7 @@ Before=lxc.service | ||
| 18 | Documentation=man:lxcfs(1) | ||
| 19 | |||
| 20 | [Service] | ||
| 21 | +ExecStartPre=-/bin/mkdir /var/lib/lxcfs | ||
| 22 | ExecStart=/usr/bin/lxcfs /var/lib/lxcfs/ | ||
| 23 | KillMode=process | ||
| 24 | Restart=on-failure | ||
| 25 | -- | ||
| 26 | 2.7.4 | ||
| 27 | |||
