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
This commit is contained in:
parent
33484d7a79
commit
354e674ded
@ -70,10 +70,10 @@ configure_kolla() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
echo "Kernel version $(uname -r)"
|
echo "Kernel version $(uname -r)"
|
||||||
if [[ $(uname -r) != *"3.19"* ]]; then
|
if [[ $(uname -r) != *"4.2"* ]]; then
|
||||||
echo "Going to update kernel image"
|
echo "Going to update kernel image"
|
||||||
apt-get update
|
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
|
# VM needs to be rebooted for docker to pickup the changes
|
||||||
echo "Rebooting for kernel changes"
|
echo "Rebooting for kernel changes"
|
||||||
echo "After reboot re-run vagrant provision to finish provising the box"
|
echo "After reboot re-run vagrant provision to finish provising the box"
|
||||||
|
Loading…
Reference in New Issue
Block a user