X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=ci%2Fenvs%2Fhost-setup0.sh;fp=ci%2Fenvs%2Fhost-setup0.sh;h=0778aae9606f7a2877cca9190287aecb57f82582;hb=3dbc3510f0107b73c1d3943937218d2dcf5353b3;hp=28c49b8b88ba1e3f5770cbbaf2b1a2d165985f7b;hpb=0ed5bc19d7d51b7bf1a689bab1f356b1a2d7f6bd;p=kvmfornfv.git diff --git a/ci/envs/host-setup0.sh b/ci/envs/host-setup0.sh index 28c49b8b8..0778aae96 100755 --- a/ci/envs/host-setup0.sh +++ b/ci/envs/host-setup0.sh @@ -9,10 +9,16 @@ ## http://www.apache.org/licenses/LICENSE-2.0 ############################################################################### +source utils.sh source host-config +KERNEL_VERSION=$( getKernelVersion ) +if [ -z $KERNEL_VERSION ];then + echo "Kernel RPM not found" + exit 1 +fi rpmdir=${1:-"/root/workspace/rpm/"} -rpmpat="kernel-4.4*.rpm" +rpmpat="kernel-${KERNEL_VERSION}*.rpm" config_grub () { key=$1