Skip to content

Commit 479cd20

Browse files
committed
Install linux-modules-extra in the wolfGuard interop test only when the kernel has one
1 parent 6aa1640 commit 479cd20

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎tools/scripts/test-interop-wolfguard.sh‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,12 @@ if command -v apt-get &>/dev/null; then
115115
apt-get install -y -qq \
116116
build-essential autoconf automake libtool pkg-config \
117117
linux-headers-"$KERNEL_VERSION" \
118-
linux-modules-extra-"$KERNEL_VERSION" \
119118
iproute2 socat kmod git check tcpdump 2>&1 | tail -1
119+
# Ubuntu's 7.0 kernels ship udp_tunnel in linux-modules and have no
120+
# linux-modules-extra package
121+
if apt-cache show linux-modules-extra-"$KERNEL_VERSION" >/dev/null 2>&1; then
122+
apt-get install -y -qq linux-modules-extra-"$KERNEL_VERSION" 2>&1 | tail -1
123+
fi
120124
elif command -v dnf &>/dev/null; then
121125
dnf install -y -q \
122126
gcc make autoconf automake libtool pkgconfig \

0 commit comments

Comments
 (0)