.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.
This commit is contained in:
nl6720 2021-03-14 20:28:37 +02:00
parent 6bb12552e4
commit e847c4ad75
No known key found for this signature in database
GPG key ID: 5CE88535E188D369

View file

@ -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