From: Thomas Weißschuh Date: Wed, 10 May 2023 10:20:05 +0000 (+0200) Subject: ci: don't try to install kernel modules if they are not available X-Git-Tag: v2.39~21^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=85958aae20247825dbd68874cfc676d02033debc;p=thirdparty%2Futil-linux.git ci: don't try to install kernel modules if they are not available 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 --- 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