From d8416d7c1c71c82fa9c0f0e7a6518ce043bff120 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Mon, 27 Jan 2014 15:36:06 -0500 Subject: [PATCH] allow for upgrade of the precise kernel we are getting kernel crashes in the OpenStack gate, to test getting around this we'd like devstack to be able to upgrade the precise kernel to the latest lts backported kernel. default to off Change-Id: I5d47aa8d15b1b1c0386a13b65022f6b8108c5c49 --- tools/fixup_stuff.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tools/fixup_stuff.sh b/tools/fixup_stuff.sh index 5fb47dc29b..a28e10ef2d 100755 --- a/tools/fixup_stuff.sh +++ b/tools/fixup_stuff.sh @@ -69,6 +69,22 @@ if [[ -d $dir ]]; then sudo chmod +r $dir/* fi +# Ubuntu 12.04 +# ----- +# We can regularly get kernel crashes on the 12.04 default kernel, so attempt +# to install a new kernel +if [[ ${DISTRO} =~ (precise) ]]; then + # Finally, because we suspect the Precise kernel is problematic, install a new kernel + UPGRADE_KERNEL=$(trueorfalse False $UPGRADE_KERNEL) + if [[ $UPGRADE_KERNEL == "True" ]]; then + if [[ ! `uname -r` =~ (^3\.11) ]]; then + apt_get install linux-generic-lts-saucy + echo "Installing Saucy LTS kernel, please reboot before proceeding" + exit 1 + fi + fi +fi + # RHEL6 # -----