summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMingli Yu <mingli.yu@windriver.com>2020-09-29 10:06:56 +0800
committerBruce Ashfield <bruce.ashfield@gmail.com>2020-10-01 23:08:10 -0400
commitd898bd1ca5de7e7084f3473106300b9ffef06761 (patch)
tree1e7a97c2d07633de4ee57044cac2b771237467fb
parentb17bd2c4b0c2e7e440cedc29f32469622c31fca3 (diff)
downloadmeta-virtualization-d898bd1ca5de7e7084f3473106300b9ffef06761.tar.gz
lxc: remove deprecated options in lxc*.service
Remove deprecated options in lxc*.service to silence below warning: # systemctl status lxc [snip] /usr/lib/systemd/system/lxc.service:17: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether. /usr/lib/systemd/system/lxc.service:18: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether. Signed-off-by: Mingli Yu <mingli.yu@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
-rw-r--r--recipes-containers/lxc/files/0001-Remove-obsolete-setting-regarding-the-Standard-Outpu.patch35
-rw-r--r--recipes-containers/lxc/files/0001-remove-deprecated-options-in-lxc.service-fixes-3527.patch31
-rw-r--r--recipes-containers/lxc/lxc_4.0.4.bb2
3 files changed, 68 insertions, 0 deletions
diff --git a/recipes-containers/lxc/files/0001-Remove-obsolete-setting-regarding-the-Standard-Outpu.patch b/recipes-containers/lxc/files/0001-Remove-obsolete-setting-regarding-the-Standard-Outpu.patch
new file mode 100644
index 00000000..ab974224
--- /dev/null
+++ b/recipes-containers/lxc/files/0001-Remove-obsolete-setting-regarding-the-Standard-Outpu.patch
@@ -0,0 +1,35 @@
1From a7a92a06a47322dee45664db5c7bfa68b2b95edb Mon Sep 17 00:00:00 2001
2From: Mingli Yu <mingli.yu@windriver.com>
3Date: Wed, 23 Sep 2020 07:03:02 +0000
4Subject: [PATCH] Remove obsolete setting regarding the Standard Output
5
6The Standard output type "syslog" is obsolete, causing a warning since systemd
7version 246 [1].
8
9Please consider using "journal" or "journal+console"
10
11[1] https://github.com/systemd/systemd/blob/master/NEWS#L202
12
13Upstream-Status: Submitted [https://github.com/lxc/lxc/pull/3541]
14
15Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
16---
17 config/init/systemd/lxc@.service.in | 2 --
18 1 files changed, 2 deletions(-)
19
20diff --git a/config/init/systemd/lxc@.service.in b/config/init/systemd/lxc@.service.in
21index a2aa2211f..21ce64aef 100644
22--- a/config/init/systemd/lxc@.service.in
23+++ b/config/init/systemd/lxc@.service.in
24@@ -14,8 +14,6 @@ ExecStop=@BINDIR@/lxc-stop -n %i
25 # Environment=BOOTUP=serial
26 # Environment=CONSOLETYPE=serial
27 Delegate=yes
28-StandardOutput=syslog
29-StandardError=syslog
30
31 [Install]
32 WantedBy=multi-user.target
33--
342.26.2
35
diff --git a/recipes-containers/lxc/files/0001-remove-deprecated-options-in-lxc.service-fixes-3527.patch b/recipes-containers/lxc/files/0001-remove-deprecated-options-in-lxc.service-fixes-3527.patch
new file mode 100644
index 00000000..29576809
--- /dev/null
+++ b/recipes-containers/lxc/files/0001-remove-deprecated-options-in-lxc.service-fixes-3527.patch
@@ -0,0 +1,31 @@
1From 0c4cd88d4a19d27ba9b5d2c8fa4d482d78211c35 Mon Sep 17 00:00:00 2001
2From: graysky <graysky@archlinux.us>
3Date: Fri, 21 Aug 2020 06:33:49 -0400
4Subject: [PATCH] remove deprecated options in lxc.service fixes #3527
5
6Remove deprecated options in lxc.service fixes #3527
7
8Upstream-Status: Backport
9
10Signed-off-by: graysky <graysky@archlinux.us>
11Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
12---
13 config/init/systemd/lxc.service.in | 2 --
14 1 file changed, 2 deletions(-)
15
16diff --git a/config/init/systemd/lxc.service.in b/config/init/systemd/lxc.service.in
17index e3745dc2d..397a6c4d0 100644
18--- a/config/init/systemd/lxc.service.in
19+++ b/config/init/systemd/lxc.service.in
20@@ -14,8 +14,6 @@ ExecReload=@LIBEXECDIR@/lxc/lxc-apparmor-load
21 # Environment=BOOTUP=serial
22 # Environment=CONSOLETYPE=serial
23 Delegate=yes
24-StandardOutput=syslog
25-StandardError=syslog
26
27 [Install]
28 WantedBy=multi-user.target
29--
302.26.2
31
diff --git a/recipes-containers/lxc/lxc_4.0.4.bb b/recipes-containers/lxc/lxc_4.0.4.bb
index f526ab99..4ef5fc0f 100644
--- a/recipes-containers/lxc/lxc_4.0.4.bb
+++ b/recipes-containers/lxc/lxc_4.0.4.bb
@@ -47,6 +47,8 @@ SRC_URI = "http://linuxcontainers.org/downloads/${BPN}-${PV}.tar.gz \
47 file://templates-use-curl-instead-of-wget.patch \ 47 file://templates-use-curl-instead-of-wget.patch \
48 file://tests-our-init-is-not-busybox.patch \ 48 file://tests-our-init-is-not-busybox.patch \
49 file://tests-add-no-validate-when-using-download-template.patch \ 49 file://tests-add-no-validate-when-using-download-template.patch \
50 file://0001-remove-deprecated-options-in-lxc.service-fixes-3527.patch \
51 file://0001-Remove-obsolete-setting-regarding-the-Standard-Outpu.patch \
50 file://dnsmasq.conf \ 52 file://dnsmasq.conf \
51 file://lxc-net \ 53 file://lxc-net \
52 " 54 "