]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
ci: move distro specific workarounds to the containerfiles
authorJo Zzsi <jozzsicsataban@gmail.com>
Tue, 28 Jan 2025 23:04:44 +0000 (18:04 -0500)
committerLaszlo <laszlo.gombos@gmail.com>
Tue, 28 Jan 2025 23:11:02 +0000 (18:11 -0500)
Follow-up to cfe8b21.

Debian and Uunbtu container worked well, but ubuntu:rolling and
ubuntu:devel did not.

I tested this PR on ubuntu:rolling.

test/container/Dockerfile-debian

index ccc1274a9e2846a64c227b1344e321bc814b0ff3..16622538968701ee3b7d9427e9ff4281d7cd3eb6 100644 (file)
@@ -102,5 +102,5 @@ RUN \
 # 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
+    ; if ! [ -e /usr/lib/modules/"$KVERSION"/vmlinuz ]; then ln -sf /boot/vmlinuz /usr/lib/modules/"$KVERSION"/vmlinuz; fi  \
+    ; if ! [ -e /usr/lib/modules/"$KVERSION"/vmlinuz ]; then ln -sf /boot/vmlinuz-"$KVERSION" /usr/lib/modules/"$KVERSION"/vmlinuz; fi