From 9f3eecefbd0fe9d4d7db913cb9f765a9b888d025 Mon Sep 17 00:00:00 2001 From: Mauro Morales Date: Thu, 11 Apr 2024 11:19:04 +0200 Subject: [PATCH] Symlink any /boot/Image* to /boot/vmlinuz (#2463) fixes #2461 Signed-off-by: Mauro Morales --- images/Dockerfile.kairos | 2 +- images/Dockerfile.kairos-alpine | 2 +- images/Dockerfile.kairos-debian | 2 +- images/Dockerfile.kairos-opensuse | 2 +- images/Dockerfile.kairos-rhel | 2 +- images/Dockerfile.kairos-ubuntu | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/images/Dockerfile.kairos b/images/Dockerfile.kairos index a645e9bd2..00516ee31 100644 --- a/images/Dockerfile.kairos +++ b/images/Dockerfile.kairos @@ -100,7 +100,7 @@ RUN if [ -f "/sbin/mkinitfs" ]; then \ # symlink kernel to /boot/vmlinuz RUN kernel=$(ls /boot/vmlinuz-* 2>/dev/null | head -n1) && if [ -e "$kernel" ]; then ln -sf "$kernel" /boot/vmlinuz; fi || true -RUN kernel=$(ls /boot/Image-* 2>/dev/null | head -n1) && if [ -e "$kernel" ]; then ln -sf "$kernel" /boot/vmlinuz; fi || true +RUN kernel=$(ls /boot/Image* 2>/dev/null | head -n1) && if [ -e "$kernel" ]; then ln -sf "$kernel" /boot/vmlinuz; fi || true # this is generally present on rhel based systems, but it doesn't hurt to remove in any case RUN rm -rf /boot/initramfs-* || true diff --git a/images/Dockerfile.kairos-alpine b/images/Dockerfile.kairos-alpine index f944e76af..ff839a8b3 100644 --- a/images/Dockerfile.kairos-alpine +++ b/images/Dockerfile.kairos-alpine @@ -251,7 +251,7 @@ RUN if [ -f "/sbin/mkinitfs" ]; then \ # symlink kernel to /boot/vmlinuz RUN kernel=$(ls /boot/vmlinuz-* 2>/dev/null | head -n1) && if [ -e "$kernel" ]; then ln -sf "$kernel" /boot/vmlinuz; fi || true -RUN kernel=$(ls /boot/Image-* 2>/dev/null | head -n1) && if [ -e "$kernel" ]; then ln -sf "$kernel" /boot/vmlinuz; fi || true +RUN kernel=$(ls /boot/Image* 2>/dev/null | head -n1) && if [ -e "$kernel" ]; then ln -sf "$kernel" /boot/vmlinuz; fi || true # this is generally present on rhel based systems, but it doesn't hurt to remove in any case RUN rm -rf /boot/initramfs-* || true diff --git a/images/Dockerfile.kairos-debian b/images/Dockerfile.kairos-debian index 174dee446..6789e0549 100644 --- a/images/Dockerfile.kairos-debian +++ b/images/Dockerfile.kairos-debian @@ -253,7 +253,7 @@ RUN if [ -f "/sbin/mkinitfs" ]; then \ # symlink kernel to /boot/vmlinuz RUN kernel=$(ls /boot/vmlinuz-* 2>/dev/null | head -n1) && if [ -e "$kernel" ]; then ln -sf "$kernel" /boot/vmlinuz; fi || true -RUN kernel=$(ls /boot/Image-* 2>/dev/null | head -n1) && if [ -e "$kernel" ]; then ln -sf "$kernel" /boot/vmlinuz; fi || true +RUN kernel=$(ls /boot/Image* 2>/dev/null | head -n1) && if [ -e "$kernel" ]; then ln -sf "$kernel" /boot/vmlinuz; fi || true # this is generally present on rhel based systems, but it doesn't hurt to remove in any case RUN rm -rf /boot/initramfs-* || true diff --git a/images/Dockerfile.kairos-opensuse b/images/Dockerfile.kairos-opensuse index 243143687..edabbecc7 100644 --- a/images/Dockerfile.kairos-opensuse +++ b/images/Dockerfile.kairos-opensuse @@ -260,7 +260,7 @@ RUN if [ -f "/sbin/mkinitfs" ]; then \ # symlink kernel to /boot/vmlinuz RUN kernel=$(ls /boot/vmlinuz-* 2>/dev/null | head -n1) && if [ -e "$kernel" ]; then ln -sf "$kernel" /boot/vmlinuz; fi || true -RUN kernel=$(ls /boot/Image-* 2>/dev/null | head -n1) && if [ -e "$kernel" ]; then ln -sf "$kernel" /boot/vmlinuz; fi || true +RUN kernel=$(ls /boot/Image* 2>/dev/null | head -n1) && if [ -e "$kernel" ]; then ln -sf "$kernel" /boot/vmlinuz; fi || true # this is generally present on rhel based systems, but it doesn't hurt to remove in any case RUN rm -rf /boot/initramfs-* || true diff --git a/images/Dockerfile.kairos-rhel b/images/Dockerfile.kairos-rhel index e52bb6321..1c56cd57c 100644 --- a/images/Dockerfile.kairos-rhel +++ b/images/Dockerfile.kairos-rhel @@ -197,7 +197,7 @@ RUN if [ -f "/sbin/mkinitfs" ]; then \ # symlink kernel to /boot/vmlinuz RUN kernel=$(ls /boot/vmlinuz-* 2>/dev/null | head -n1) && if [ -e "$kernel" ]; then ln -sf "$kernel" /boot/vmlinuz; fi || true -RUN kernel=$(ls /boot/Image-* 2>/dev/null | head -n1) && if [ -e "$kernel" ]; then ln -sf "$kernel" /boot/vmlinuz; fi || true +RUN kernel=$(ls /boot/Image* 2>/dev/null | head -n1) && if [ -e "$kernel" ]; then ln -sf "$kernel" /boot/vmlinuz; fi || true # this is generally present on rhel based systems, but it doesn't hurt to remove in any case RUN rm -rf /boot/initramfs-* || true diff --git a/images/Dockerfile.kairos-ubuntu b/images/Dockerfile.kairos-ubuntu index 8fd6d3478..ed5fc58a2 100644 --- a/images/Dockerfile.kairos-ubuntu +++ b/images/Dockerfile.kairos-ubuntu @@ -443,7 +443,7 @@ RUN if [ -f "/sbin/mkinitfs" ]; then \ # symlink kernel to /boot/vmlinuz RUN kernel=$(ls /boot/vmlinuz-* 2>/dev/null | head -n1) && if [ -e "$kernel" ]; then ln -sf "$kernel" /boot/vmlinuz; fi || true -RUN kernel=$(ls /boot/Image-* 2>/dev/null | head -n1) && if [ -e "$kernel" ]; then ln -sf "$kernel" /boot/vmlinuz; fi || true +RUN kernel=$(ls /boot/Image* 2>/dev/null | head -n1) && if [ -e "$kernel" ]; then ln -sf "$kernel" /boot/vmlinuz; fi || true # this is generally present on rhel based systems, but it doesn't hurt to remove in any case RUN rm -rf /boot/initramfs-* || true