blob: a432481a15faed9d96d151efd228cd96e459006a [file] [log] [blame]
Carmelo Casconeada7b5b2019-04-23 13:50:03 -07001#!/usr/bin/env bash
2
3set -xe
4
5# There is a known issue with some kernel versions that affects PTF tests:
6# https://github.com/jafingerhut/p4-guide/tree/master/linux-veth-bug
7
8# Run this script to update the kernel inside the VM.
9
10KERNEL_VER="4.15.0-46-generic"
11
12apt-get update
13apt-get -y --no-install-recommends install \
14 linux-image-${KERNEL_VER} linux-headers-${KERNEL_VER}
15
16apt-mark hold ${KERNEL_VER}