Add Fedora 24 work-around kernel

The current F24 kernel can't run tempest without oops-ing.  This
installs a custom build with a fix until we get a fixed release.

See also

 https://git.kernel.org/cgit/linux/kernel/git/davem/net.git/commit/?id=5ef9f289c4e698054e5687edb54f0da3cdc9173a
 https://bugzilla.redhat.com/show_bug.cgi?id=1361414

Change-Id: I0769f005da1931658a5fb9e627983ed30c11d212
This commit is contained in:
Ian Wienand 2016-08-08 04:10:13 +00:00
parent 5ad43743f9
commit efac0c8b6b
1 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,35 @@
#!/bin/bash
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied.
# dib-lint: disable=setu setpipefail
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
set -x
fi
set -e
if [[ $DISTRO_NAME != "fedora" && $DIB_RELEASE != "24" ]]; then
echo "Skipping Fedora 24 workaround"
exit 0
fi
# This kernel has a single OVS patch
# https://git.kernel.org/cgit/linux/kernel/git/davem/net.git/commit/?id=5ef9f289c4e698054e5687edb54f0da3cdc9173a
# to enable F24 testing until we get a fixed official kernel released
dnf -y copr enable iwienand/kernel-4.6.4-301.rhbz1361414
dnf update -y
# This seems something like the least-worse way to do things ...
# https://fedoraproject.org/wiki/GRUB_2#Setting_default_entry
echo "GRUB_DEFAULT=saved" >> /etc/default/grub
echo "GRUB_SAVEDEFAULT=false" >> /etc/default/grub
grub2-set-default 'Advanced options for Fedora 24 (Twenty Four)>Fedora (4.6.4-301.rhbz1361414.fc24.x86_64) 24 (Twenty Four)'