mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-09 11:58:16 +00:00
kata-deploy: use proper kernel install script
kata deploy script setup a new GOPATH to pull a fresh environment to install kata. This script was using the local kernel install script and not the one in the new environment Fixes: #706 Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
This commit is contained in:
parent
9bb7ef5069
commit
452799e038
@ -90,18 +90,17 @@ install_image() {
|
|||||||
#Install kernel asset
|
#Install kernel asset
|
||||||
install_kernel() {
|
install_kernel() {
|
||||||
go get "github.com/${project}/packaging" || true
|
go get "github.com/${project}/packaging" || true
|
||||||
pushd ${GOPATH}/src/github.com/${project}/packaging >>/dev/null
|
(
|
||||||
|
cd ${GOPATH}/src/github.com/${project}/packaging >>/dev/null
|
||||||
git checkout "${kata_version}-kernel-config" ||
|
git checkout "${kata_version}-kernel-config" ||
|
||||||
git checkout "${kata_version}"
|
git checkout "${kata_version}"
|
||||||
popd >>/dev/null
|
|
||||||
pushd "${script_dir}/../kernel" >>/dev/null
|
|
||||||
|
|
||||||
info "build kernel"
|
info "build kernel"
|
||||||
./build-kernel.sh setup
|
./kernel/build-kernel.sh setup
|
||||||
./build-kernel.sh build
|
./kernel/build-kernel.sh build
|
||||||
info "install kernel"
|
info "install kernel"
|
||||||
DESTDIR="${destdir}" PREFIX="${prefix}" ./build-kernel.sh install
|
DESTDIR="${destdir}" PREFIX="${prefix}" ./kernel/build-kernel.sh install
|
||||||
popd >>/dev/null
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
# Install static nemu asset
|
# Install static nemu asset
|
||||||
|
Loading…
Reference in New Issue
Block a user