Skip to content

Commit

Permalink
Workaround to remove pre-existing elemental initrds
Browse files Browse the repository at this point in the history
For derived images already including an elemental generated initrd
we should remove them specially if the kernel version changes, as
the new one would not overwrite the previous one and leave two
elemental initrds inside /boot.

Signed-off-by: David Cassany <[email protected]>
  • Loading branch information
davidcassany authored and kkaempf committed Jun 6, 2024
1 parent f210a4a commit 8261297
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .obs/dockerfile/micro-rt-os/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,6 @@ RUN zypper clean --all && \
>/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 baremetal 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

0 comments on commit 8261297

Please sign in to comment.