From 85958aae20247825dbd68874cfc676d02033debc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20Wei=C3=9Fschuh?= Date: Wed, 10 May 2023 12:20:05 +0200 Subject: [PATCH] ci: don't try to install kernel modules if they are not available MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit It seems linux-modules-extra-5.15.0-1036-azure got dropped from Ubuntu repos. Maybe for security reasons. Signed-off-by: Thomas Weißschuh --- .github/workflows/cibuild-setup-ubuntu.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cibuild-setup-ubuntu.sh b/.github/workflows/cibuild-setup-ubuntu.sh index c74d46d210..3ffa9fcb37 100755 --- a/.github/workflows/cibuild-setup-ubuntu.sh +++ b/.github/workflows/cibuild-setup-ubuntu.sh @@ -36,7 +36,11 @@ PACKAGES_OPTIONAL=( # scsi_debug if [[ "$QEMU_USER" != "1" ]]; then - PACKAGES+=(linux-modules-extra-$(uname -r)) + MODULES_PACKAGE="linux-modules-extra-$(uname -r)" + # may not exist anymore + if apt-cache show "$MODULES_PACKAGE" >/dev/null 2>&1; then + PACKAGES+=("$MODULES_PACKAGE") + fi fi if [[ "$TRANSLATE_MANPAGES" == "yes" ]];then -- 2.47.3