tar patches.tar.* before making kernel and add URL in kata-containers.spec

This commit is contained in:
Grooooot 2020-01-02 19:35:05 +08:00
parent 80b532d8e2
commit 0b57e67c37

View File

@ -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