Carmelo Cascone | ada7b5b | 2019-04-23 13:50:03 -0700 | [diff] [blame] | 1 | #!/usr/bin/env bash |
2 | |||||
3 | set -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 | |||||
10 | KERNEL_VER="4.15.0-46-generic" | ||||
11 | |||||
12 | apt-get update | ||||
13 | apt-get -y --no-install-recommends install \ | ||||
14 | linux-image-${KERNEL_VER} linux-headers-${KERNEL_VER} | ||||
15 | |||||
16 | apt-mark hold ${KERNEL_VER} |