diff options
author | Mark Asselstine <mark.asselstine@windriver.com> | 2018-10-02 14:43:46 -0400 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2018-10-04 09:31:19 -0400 |
commit | f7738717b864f4d7a454034092c66bf95061bfcf (patch) | |
tree | cf6e5f70be9a90f41c77e1917548cb7aaf8007f8 /recipes-containers/lxcfs/files/systemd-ensure-var-lib-lxcfs-exists.patch | |
parent | a49ca99d063bce9158c7094279cf498dfbfe0455 (diff) | |
download | meta-virtualization-f7738717b864f4d7a454034092c66bf95061bfcf.tar.gz |
lxcfs: move recipe from meta-overc to here
This recipe was originally written and included in meta-overc as it
was used by the overc framework so we implemented it there to sort out
the kinks. Since this package is not specific to the OverC framework
and people may be interested in including it in their images without
having any interest in the OverC framework we are moving this recipe
here, alongside lxc and other container related recipes.
Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
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 | |||