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:
Jose Carlos Venegas Munoz 2019-09-10 11:59:10 -05:00
parent 9bb7ef5069
commit 452799e038

View File

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