X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=ci%2Fenvs%2Fhost-setup0.sh;h=0778aae9606f7a2877cca9190287aecb57f82582;hb=3dbc3510f0107b73c1d3943937218d2dcf5353b3;hp=eeb91c19d25a67e6083a22658ec197b94b6c1e10;hpb=d792accb76bb16af0cbf0710a41491d21de75721;p=kvmfornfv.git diff --git a/ci/envs/host-setup0.sh b/ci/envs/host-setup0.sh index eeb91c19d..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.1*.rpm" +rpmpat="kernel-${KERNEL_VERSION}*.rpm" config_grub () { key=$1 @@ -70,7 +76,6 @@ config_grub 'idle' 'poll' ## Disable clocksource verification at runtime config_grub 'tsc' 'reliable' -sed -i s/GRUB_DEFAULT=saved/GRUB_DEFAULT=0/ /etc/default/grub grub2-mkconfig -o /boot/grub2/grub.cfg install_kernel