diff --git a/0002-KubeOS-support-generate-coredump.patch b/0002-KubeOS-support-generate-coredump.patch new file mode 100644 index 0000000000000000000000000000000000000000..4583fc36994096675645b8a688d66a711d3ae20e --- /dev/null +++ b/0002-KubeOS-support-generate-coredump.patch @@ -0,0 +1,30 @@ +From 20d0487753b045a0a0af19dffd0d5deec25fd672 Mon Sep 17 00:00:00 2001 +From: liyuanr +Date: Wed, 14 Jun 2023 16:00:03 +0800 +Subject: [PATCH] KubeOS:support generate coredump + +For Go language applications, generating coredump +requires declaring the environment variable GOTRACEBACK=crash, +so the service of os agent adds Environment=GOTRACEBACK=crash +to support generating coredump + +Signed-off-by: liyuanr +--- + files/os-agent.service | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/files/os-agent.service b/files/os-agent.service +index cf71d08..f778804 100644 +--- a/files/os-agent.service ++++ b/files/os-agent.service +@@ -12,6 +12,7 @@ + Description=Agent For KubeOS + + [Service] ++Environment=GOTRACEBACK=crash + ExecStart=/usr/bin/os-agent + KillMode=process + Restart=on-failure +-- +2.33.0.windows.2 + diff --git a/KubeOS.spec b/KubeOS.spec index d3f9ab4ae5cc9d19c8f57a51e02b30526c1a4477..e937c6d41fe643a4026e097af0aab44b78e2a8e1 100644 --- a/KubeOS.spec +++ b/KubeOS.spec @@ -2,11 +2,12 @@ Name: KubeOS Version: 1.0.3 -Release: 2 +Release: 3 Summary: O&M platform used to update the whole OS as an entirety License: Mulan PSL v2 Source0: https://gitee.com/openeuler/KubeOS/repository/archive/v%{version}.tar.gz Patch1: 0001-KubeOS-add-oci-image-digests-check-when-upgrade-and-.patch +Patch2: 0002-KubeOS-support-generate-coredump.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: make BuildRequires: golang >= 1.13 @@ -107,6 +108,12 @@ install -p -m 0600 ./files/os-release %{buildroot}/opt/kubeOS/files rm -rfv %{buildroot} %changelog +* Wed June 14 2023 liyuanrong - 1.0.3-3 +- Type:requirement +- CVE:NA +- SUG:restart +- DESC:support generate coredump + * Tue May 30 2023 liyuanrong - 1.0.3-2 - Type:requirement - CVE:NA