From 8013a5ae581d7e2a8313d84d811ed3d0566989ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= Date: Fri, 7 Jun 2024 11:53:01 +0200 Subject: [PATCH] micro-kvm-os: Remove preexisting initrd MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Klaus Kämpf --- .obs/dockerfile/micro-kvm-os/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.obs/dockerfile/micro-kvm-os/Dockerfile b/.obs/dockerfile/micro-kvm-os/Dockerfile index 69358c45f..233b5a5f7 100644 --- a/.obs/dockerfile/micro-kvm-os/Dockerfile +++ b/.obs/dockerfile/micro-kvm-os/Dockerfile @@ -58,5 +58,6 @@ RUN rm -rf /var/log/update* && \ >/var/log/lastlog && \ rm -rf /boot/vmlinux* -# Rebuild initrd to setup dracut with the boot configurations +# Rebuild initrd to setup dracut with the boot configurations and remove pre-existing initrd from base image +RUN rm -fv /boot/elemental.initrd* RUN elemental init --force elemental-rootfs,elemental-sysroot,grub-config,dracut-config,cloud-config-essentials,elemental-setup,boot-assessment