Weezer Su 4e341cf48a Add downgrade kernel script
The ubuntu release always comes with the lastest kernel, this
script will save sometime to do the downgrade kernel for you,
actually it not only downgrade kernel, you can specify any kernel
you want to put on the image.

Change-Id: I8639ca4a8c0cfa28db8a7faa6587510f44e27303
2017-02-02 21:17:08 +00:00

16 lines
410 B
Bash

#!/bin/bash
#eg. KERNEL_VERSION="3.13.0-98"
KERNEL_VERSION=${KERNEL_VERSION:-false}
if [[ "${KERNEL_VERSION}" = false ]]; then
echo "Please setup the KERNEL_VERSION before running this script"
exit 1
fi
pushd ..
source functions.rc
for node in $(get_all_hosts); do
ssh -q -t -o StrictHostKeyChecking=no 10.0.0.${node#*":"} KERNEL_VERSION="${KERNEL_VERSION}" 'bash -s' < tools/ubuntu-downgrade.sh
done