tar patches.tar.* before making kernel and add URL in kata-containers.spec
This commit is contained in:
parent
80b532d8e2
commit
0b57e67c37
@ -18,6 +18,7 @@ Version: %{VERSION}
|
|||||||
Release: %{RELEASE}
|
Release: %{RELEASE}
|
||||||
Summary: Kata Container integration
|
Summary: Kata Container integration
|
||||||
License: Apache 2.0
|
License: Apache 2.0
|
||||||
|
URL: https://gitee.com/src-openeuler/kata_integration
|
||||||
Source0: %{name}-%{version}.tar.gz
|
Source0: %{name}-%{version}.tar.gz
|
||||||
Source1: kata-runtime-%{version}.tar.gz
|
Source1: kata-runtime-%{version}.tar.gz
|
||||||
Source2: kata-agent-%{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
|
cd %{_builddir}/kernel
|
||||||
mkdir ./linux && tar -xzf linux-*.tar.gz -C ./linux --strip-components 1
|
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/
|
cd %{_builddir}/kernel/linux/
|
||||||
%ifarch %{ix86} x86_64
|
%ifarch %{ix86} x86_64
|
||||||
cp %{_builddir}/%{name}-%{version}/hack/config-kata-x86_64 ./.config
|
cp %{_builddir}/%{name}-%{version}/hack/config-kata-x86_64 ./.config
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user