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