diff options
| author | Christian Hopps <chopps@labn.net> | 2024-06-08 15:37:47 -0400 | 
|---|---|---|
| committer | Christian Hopps <chopps@labn.net> | 2024-06-08 17:29:19 -0400 | 
| commit | e973c1dd481b99171774a7dd127695864d5a7b09 (patch) | |
| tree | 103f5b87db545c04f21b97f542d6bcaa30def8c3 | |
| parent | a24c8050e182efcb1d065e570313684e7ffc24b0 (diff) | |
ci: do apt-get update before installing required modules
- Use `uname -r` to also install specific module versions since
  with github runners the running kernel can become out-dated with
  the deployed packages.
Signed-off-by: Christian Hopps <chopps@labn.net>
| -rw-r--r-- | .github/workflows/build-test-docker.yml | 10 | 
1 files changed, 6 insertions, 4 deletions
diff --git a/.github/workflows/build-test-docker.yml b/.github/workflows/build-test-docker.yml index de9f620c9d..3f53f32d3a 100644 --- a/.github/workflows/build-test-docker.yml +++ b/.github/workflows/build-test-docker.yml @@ -68,11 +68,13 @@ jobs:        - name: Run topotests          run: |            uname -a -          sudo apt-get install -y linux-modules-extra-azure || true -          sudo apt-get install -y python3-xmltodict || true +          MODPKGVER=$(uname -r) +          sudo apt-get update -y +          # Github is running old kernels but installing newer packages :( +          sudo apt-get install -y linux-modules-extra-azure linux-modules-${MODPKGVER} linux-modules-extra-${MODPKGVER} python3-xmltodict            sudo modprobe vrf || true -          sudo modprobe mpls-iptunnel || true -          sudo modprobe mpls-router || true +          sudo modprobe mpls-iptunnel +          sudo modprobe mpls-router            docker load --input /tmp/frr-ubuntu22.tar            if ! grep CONFIG_IP_MROUTE_MULTIPLE_TABLES=y /boot/config*; then  | 
