From 0b57e67c37950efb0c818f00d2cd3b62358ac5ff Mon Sep 17 00:00:00 2001 From: Grooooot Date: Thu, 2 Jan 2020 19:35:05 +0800 Subject: [PATCH] tar patches.tar.* before making kernel and add URL in kata-containers.spec --- hack/kata-containers.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hack/kata-containers.spec b/hack/kata-containers.spec index 2af59b3..50968b5 100644 --- a/hack/kata-containers.spec +++ b/hack/kata-containers.spec @@ -18,6 +18,7 @@ Version: %{VERSION} Release: %{RELEASE} Summary: Kata Container integration License: Apache 2.0 +URL: https://gitee.com/src-openeuler/kata_integration Source0: %{name}-%{version}.tar.gz Source1: kata-runtime-%{version}.tar.gz Source2: kata-agent-%{version}.tar.gz @@ -42,6 +43,9 @@ This is core component of Kata Container, to make it work, you need a docker eng cd %{_builddir}/kernel mkdir ./linux && tar -xzf linux-*.tar.gz -C ./linux --strip-components 1 +if ls patches.tar.* >/dev/null 2>&1;then + tar -xf patches.tar.* +fi cd %{_builddir}/kernel/linux/ %ifarch %{ix86} x86_64 cp %{_builddir}/%{name}-%{version}/hack/config-kata-x86_64 ./.config -- Gitee