Browse code

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

Sean Dague authored on 2014/01/28 05:36:06
Showing 1 changed files
... ...
@@ -69,6 +69,22 @@ if [[ -d $dir ]]; then
69 69
     sudo chmod +r $dir/*
70 70
 fi
71 71
 
72
+# Ubuntu 12.04
73
+# -----
74
+# We can regularly get kernel crashes on the 12.04 default kernel, so attempt
75
+# to install a new kernel
76
+if [[ ${DISTRO} =~ (precise) ]]; then
77
+    # Finally, because we suspect the Precise kernel is problematic, install a new kernel
78
+    UPGRADE_KERNEL=$(trueorfalse False $UPGRADE_KERNEL)
79
+    if [[ $UPGRADE_KERNEL == "True" ]]; then
80
+        if [[ ! `uname -r` =~ (^3\.11) ]]; then
81
+            apt_get install linux-generic-lts-saucy
82
+            echo "Installing Saucy LTS kernel, please reboot before proceeding"
83
+            exit 1
84
+        fi
85
+    fi
86
+fi
87
+
72 88
 
73 89
 # RHEL6
74 90
 # -----