meta-virtualization/recipes-containers/lxcfs/files/systemd-ensure-var-lib-lxcfs-exists.patch
Bruce Ashfield 0904b0a778 lxcfs: update to 4.0.7
Bumping to the latest available lxcfs. As part of this update,
the license has changed to LGPL-2.1+ (from Apache-2.0)

We also refresh our systemd patch to continue to apply.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-02-07 08:20:30 -05:00

25 lines
837 B
Diff

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(+)
Index: lxcfs-4.0.7/config/init/systemd/lxcfs.service
===================================================================
--- lxcfs-4.0.7.orig/config/init/systemd/lxcfs.service
+++ lxcfs-4.0.7/config/init/systemd/lxcfs.service
@@ -5,6 +5,7 @@
Documentation=man:lxcfs(1)
[Service]
+ExecStartPre=-/bin/mkdir /var/lib/lxcfs
ExecStart=/usr/bin/lxcfs /usr/local/var/lib/lxcfs
KillMode=process
Restart=on-failure