]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
ci: don't try to install kernel modules if they are not available
authorThomas Weißschuh <thomas@t-8ch.de>
Wed, 10 May 2023 10:20:05 +0000 (12:20 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Wed, 10 May 2023 10:42:14 +0000 (12:42 +0200)
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 <thomas@t-8ch.de>
.github/workflows/cibuild-setup-ubuntu.sh

index c74d46d2105eb5af713334d01ef139f33b2880e4..3ffa9fcb37bd678e73038ad84a878163ec42faab 100755 (executable)
@@ -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