X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=ci%2Fenvs%2Fguest-setup0.sh;h=301d34cbe46877a7e52eb5f2f45a6524a961503f;hb=refs%2Fchanges%2F63%2F20563%2F4;hp=4f9eaa430f5f27e79bcaf77f527d79efe68b63b4;hpb=0ed5bc19d7d51b7bf1a689bab1f356b1a2d7f6bd;p=kvmfornfv.git diff --git a/ci/envs/guest-setup0.sh b/ci/envs/guest-setup0.sh index 4f9eaa430..301d34cbe 100755 --- a/ci/envs/guest-setup0.sh +++ b/ci/envs/guest-setup0.sh @@ -8,9 +8,15 @@ ## http://www.apache.org/licenses/LICENSE-2.0 ############################################################################### +source utils.sh +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" guest_isolcpus=1 # The script's caller should passing the rpm directory that is built out from