From: Jo Zzsi Date: Tue, 28 Jan 2025 21:55:21 +0000 (-0500) Subject: ci: move distro specific workarounds to the containerfiles X-Git-Tag: 106~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cfe8b21;p=thirdparty%2Fdracut-ng.git ci: move distro specific workarounds to the containerfiles This change helps to keep the test itself more readable. --- diff --git a/test/container/Dockerfile-debian b/test/container/Dockerfile-debian index 86273d8f1..ccc1274a9 100644 --- a/test/container/Dockerfile-debian +++ b/test/container/Dockerfile-debian @@ -98,3 +98,9 @@ RUN \ zstd \ && apt-get clean \ && chmod a+r /boot/vmlinu* + +# workaround for kernel-install +RUN \ + KVERSION="$(cd /lib/modules && ls -1 | tail -1)" \ + ; ! [ -e /usr/lib/modules/"$KVERSION"/vmlinuz ] && ln -sf /boot/vmlinuz /usr/lib/modules/"$KVERSION"/vmlinuz \ + ; ! [ -e /usr/lib/modules/"$KVERSION"/vmlinuz ] && ln -sf /boot/vmlinuz-"$KVERSION" /usr/lib/modules/"$KVERSION"/vmlinuz diff --git a/test/container/Dockerfile-opensuse b/test/container/Dockerfile-opensuse index 66b2d277a..e95da5b6c 100644 --- a/test/container/Dockerfile-opensuse +++ b/test/container/Dockerfile-opensuse @@ -53,3 +53,8 @@ RUN zypper --non-interactive install --no-recommends \ util-linux-systemd \ xorriso \ && zypper --non-interactive dist-upgrade --no-recommends + +# workaround for openSUSE on arm64 +RUN \ + KVERSION="$(cd /lib/modules && ls -1 | tail -1)" \ + && if [ "$(arch)"="aarch64" ] && [ -e /usr/lib/modules/"$KVERSION"/Image ]; then ln -sf /usr/lib/modules/"$KVERSION"/Image /usr/lib/modules/"$KVERSION"/vmlinuz; fi diff --git a/test/container/Dockerfile-void b/test/container/Dockerfile-void index 0250da132..ecdfd0f41 100644 --- a/test/container/Dockerfile-void +++ b/test/container/Dockerfile-void @@ -60,4 +60,5 @@ RUN xbps-install -Syu xbps && xbps-install -yu \ ukify \ xorriso \ zfs \ - && rm -rf /var/cache/xbps + && rm -rf /var/cache/xbps \ + && rm -rf /usr/lib/firmware