From 354e674dedacec727bf7edfcfd9ddbfba3ce586e Mon Sep 17 00:00:00 2001 From: MD NADEEM Date: Thu, 4 Feb 2016 17:05:05 +0530 Subject: [PATCH] Update kernel version in ubuntu-bootstrap.sh Ubuntu-bootstrap.sh script rebooted my server with message of re-run the script and at re-run it again do the same thing. I find this behavior is due to the below check if [[ $(uname -r) != *"3.19"* ]] As latest ubuntu kernel version is 4.2.0-27-generic, so we should update the script for kernel version 4.2.0-27-generic. This patch fixes the issue. Closes-Bug: #1541797 Change-Id: I01e98d80df60fe8c5f6ac6e644d42261fdd2921c --- dev/vagrant/ubuntu-bootstrap.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev/vagrant/ubuntu-bootstrap.sh b/dev/vagrant/ubuntu-bootstrap.sh index 2c0b2cde7e..028d09d1ec 100644 --- a/dev/vagrant/ubuntu-bootstrap.sh +++ b/dev/vagrant/ubuntu-bootstrap.sh @@ -70,10 +70,10 @@ configure_kolla() { } echo "Kernel version $(uname -r)" -if [[ $(uname -r) != *"3.19"* ]]; then +if [[ $(uname -r) != *"4.2"* ]]; then echo "Going to update kernel image" apt-get update - apt-get install -y linux-image-generic-lts-vivid + apt-get install -y linux-image-generic-lts-wily # VM needs to be rebooted for docker to pickup the changes echo "Rebooting for kernel changes" echo "After reboot re-run vagrant provision to finish provising the box"