From e847c4ad75f562fad2d23ed387664a9a4d6ae8f1 Mon Sep 17 00:00:00 2001 From: nl6720 Date: Sun, 14 Mar 2021 20:28:37 +0200 Subject: .gitlab/ci/build-host.sh: Do not upgrade packages with files in /usr/lib/modules/ Packages with files in /usr/lib/modules/ depend on the current kernel, thus they should not be updated. --- .gitlab/ci/build-host.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab/ci/build-host.sh b/.gitlab/ci/build-host.sh index 026d28f..c15bc14 100755 --- a/.gitlab/ci/build-host.sh +++ b/.gitlab/ci/build-host.sh @@ -140,7 +140,7 @@ function main() { expect "# " # Install required packages - send "pacman -Syu --ignore linux --noconfirm --needed qemu-headless jq dosfstools e2fsprogs libisoburn mtools squashfs-tools zsync\n" + send "pacman -Fy && pacman -Syu --ignore \$(pacman -Fq --machinereadable /usr/lib/modules/ | awk 'BEGIN { FS = \"\\\0\";ORS=\",\" }; { print \$2 } ' | sort -ut , | head -c -2) --noconfirm --needed qemu-headless jq dosfstools e2fsprogs libisoburn mtools squashfs-tools zsync\n" expect "# " 120 ## Start build and copy output to local disk -- cgit v1.2.3-70-g09d2