lxcfs/0020-enable-cfs-option-to-show-correct-proc-cpuinfo-view.patch
yangjiaqi 0ec657ffe7 lxcfs:sync with latest branch - master
0019-fix-dev-read-memory-leak-in-container.patch
0020-enable-cfs-option-to-show-correct-proc-cpuinfo-view.patch
0021-fix-pidfd_open-pidfd_send_signal-function-compilatio.patch
0022-cpuview-fix-possible-use-after-free-in-find_proc_sta.patch
0023-proc-fix-proc-diskstats-output-format.patch

Signed-off-by: yangjiaqi <yangjiaqi16@huawei.com>
(cherry picked from commit 6f7fa5fe1329e1a4cec21696c565e251d96a2178)
2023-05-26 16:37:50 +08:00

26 lines
866 B
Diff

From ed5823bf5b0d8bd425417d9b3590ece248fe1655 Mon Sep 17 00:00:00 2001
From: yangjiaqi <yangjiaqi16@huawei.com>
Date: Sat, 26 Nov 2022 11:48:14 +0800
Subject: [PATCH] enable cfs option to show correct proc cpuinfo view
---
config/init/systemd/lxcfs.service.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/config/init/systemd/lxcfs.service.in b/config/init/systemd/lxcfs.service.in
index bdaa2fa..3ee006b 100644
--- a/config/init/systemd/lxcfs.service.in
+++ b/config/init/systemd/lxcfs.service.in
@@ -6,7 +6,7 @@ Documentation=man:lxcfs(1)
[Service]
ExecStartPre=-/usr/local/bin/lxcfs-tools prestart
-ExecStart=/usr/bin/lxcfs /var/lib/lxc/lxcfs/
+ExecStart=/usr/bin/lxcfs --enable-cfs /var/lib/lxc/lxcfs/
ExecStartPost=-/usr/local/bin/lxcfs-tools remount -a
KillMode=process
ExecStop=-/usr/local/bin/lxcfs-tools umount -a
--
2.30.0