From 2e41060717f0badd89f8544730f95f7f1f0e5137 Mon Sep 17 00:00:00 2001 From: zhangsong234 Date: Tue, 30 Mar 2021 15:20:00 +0800 Subject: [PATCH] remove lxcfs-tools dependency for common use Signed-off-by: zhangsong234 --- ...xcfs-tools-dependency-for-common-use.patch | 32 +++++++++++++++++++ lxcfs.spec | 8 +++-- 2 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 0016-remove-lxcfs-tools-dependency-for-common-use.patch diff --git a/0016-remove-lxcfs-tools-dependency-for-common-use.patch b/0016-remove-lxcfs-tools-dependency-for-common-use.patch new file mode 100644 index 0000000..bda3d95 --- /dev/null +++ b/0016-remove-lxcfs-tools-dependency-for-common-use.patch @@ -0,0 +1,32 @@ +From 93a91769aaece5bcdac817443e31cd0a15a0952a Mon Sep 17 00:00:00 2001 +From: zhangsong234 +Date: Tue, 30 Mar 2021 15:14:24 +0800 +Subject: [PATCH] remove lxcfs-tools dependency for common use + +Signed-off-by: zhangsong234 +--- + config/init/systemd/lxcfs.service.in | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/config/init/systemd/lxcfs.service.in b/config/init/systemd/lxcfs.service.in +index 3d763c6..bdaa2fa 100644 +--- a/config/init/systemd/lxcfs.service.in ++++ b/config/init/systemd/lxcfs.service.in +@@ -5,11 +5,11 @@ Before=lxc.service + Documentation=man:lxcfs(1) + + [Service] +-ExecStartPre=/usr/local/bin/lxcfs-tools prestart ++ExecStartPre=-/usr/local/bin/lxcfs-tools prestart + ExecStart=/usr/bin/lxcfs /var/lib/lxc/lxcfs/ +-ExecStartPost=/usr/local/bin/lxcfs-tools remount -a ++ExecStartPost=-/usr/local/bin/lxcfs-tools remount -a + KillMode=process +-ExecStop=/usr/local/bin/lxcfs-tools umount -a ++ExecStop=-/usr/local/bin/lxcfs-tools umount -a + ExecStopPost=-/bin/fusermount -u /var/lib/lxc/ + Delegate=yes + ExecReload=/bin/kill -USR1 $MAINPID +-- +1.8.3.1 + diff --git a/lxcfs.spec b/lxcfs.spec index 38082e5..c3594da 100644 --- a/lxcfs.spec +++ b/lxcfs.spec @@ -4,9 +4,9 @@ #Basic Information Name: lxcfs Version: 4.0.5 -Release: 3 +Release: 4 Summary: FUSE filesystem for LXC -License: Apache-2.0 +License: LGPL 2.1+ URL: http://linuxcontainers.org Source: https://linuxcontainers.org/downloads/%{name}/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -25,6 +25,7 @@ Patch9012: 0012-lxcfs-proc_diskstats_read-func-obtain-data-from-blki.patch Patch9013: 0013-add-secure-compile-option-in-Makefile.patch Patch9014: 0014-fix-proc-diskstats-show-in-container.patch Patch9015: 0015-lxcfs-adapt-4.18-kernel.patch +Patch9016: 0016-remove-lxcfs-tools-dependency-for-common-use.patch #Dependency BuildRequires: autoconf automake libtool help2man @@ -84,6 +85,9 @@ fi %{_unitdir}/* %changelog +* Tue Mar 30 2021 zhangsong234 - 4.0.5-4 +- remove lxcfs-tools dependency for common use + * Mon Nov 30 2020 openEuler Buildteam - 4.0.5-2 - fix reinstall bug