leapp-repository icon indicating copy to clipboard operation
leapp-repository copied to clipboard

leapp upgrade failed to create new initramfs

Open brianjmurrell opened this issue 3 years ago • 2 comments

Actual behavior After a leapp upgrade and reboot, the upgraded system was left without an initramfs for the upgraded kernel.

To Reproduce I didn't do anything particular, I don't think. Was a pretty straightforward leapp upgrade. Not sure of any particular steps to actually reproduce.

Expected behavior After upgrade, there should be an initramfs for the upgraded kernel.

System information (please complete the following information):

  • OS and version: CentOS 7.9 -> Almalinux 8.4
  • Linux server.interlinx.bc.ca 3.10.0-1160.36.2.el7.x86_64 #1 SMP Wed Jul 21 11:57:15 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Additional context After I logged in with an older kernel/initramfs from the pre-upgrade O/S and tried to run dracut /boot/initramfs-4.18.0-305.25.1.el8_4.x86_64.img 4.18.0-305.25.1.el8_4.x86_64 I got the following error:

dracut: dracut module 'systemd-bootchart' cannot be found or installed.'

which seems likely why the initramfs generation during the upgrade might have failed. This seems like it should be an inhibitor.

It seems that systemd-bootchart was removed from the base systemd package and branched into a separate package and not ported to EL8. From what I can tell.

Leapp definitely needs to be able to deal with this.

brianjmurrell avatar Jan 19 '22 20:01 brianjmurrell

Thanks for the report. I completely missed that. I am curious whether there is a way to reproduce it in RHEL. putting on my long-term todolist. As we have not more isses about that, I guess it's not priority or it has been fixed in additional packages.

pirat89 avatar Mar 07 '23 10:03 pirat89

This seems related to issue #808

pirat89 avatar Mar 07 '23 10:03 pirat89