mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-30 23:06:27 +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() {
|
||||
go get "github.com/${project}/packaging" || true
|
||||
pushd ${GOPATH}/src/github.com/${project}/packaging >>/dev/null
|
||||
git checkout "${kata_version}-kernel-config" ||
|
||||
(
|
||||
cd ${GOPATH}/src/github.com/${project}/packaging >>/dev/null
|
||||
git checkout "${kata_version}-kernel-config" ||
|
||||
git checkout "${kata_version}"
|
||||
popd >>/dev/null
|
||||
pushd "${script_dir}/../kernel" >>/dev/null
|
||||
|
||||
info "build kernel"
|
||||
./build-kernel.sh setup
|
||||
./build-kernel.sh build
|
||||
info "install kernel"
|
||||
DESTDIR="${destdir}" PREFIX="${prefix}" ./build-kernel.sh install
|
||||
popd >>/dev/null
|
||||
info "build kernel"
|
||||
./kernel/build-kernel.sh setup
|
||||
./kernel/build-kernel.sh build
|
||||
info "install kernel"
|
||||
DESTDIR="${destdir}" PREFIX="${prefix}" ./kernel/build-kernel.sh install
|
||||
)
|
||||
}
|
||||
|
||||
# Install static nemu asset
|
||||
|
Loading…
Reference in New Issue
Block a user