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