Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-101177

RHEL 9.6 to 10.0 upgrade fails: initramfs not created

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • No
    • Low
    • rhel-upgrades
    • 26
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      What were you trying to do that didn't work?

      leapp upgrade fails from RHEL 9.6 to RHEL 10.0 with following: 

      • error: ../../grub-core-fs/fshelp.c:257:file
        'initramfs-6.12.0-55.17.1.el10_0.x86_64.img' not found.

      What is the impact of this issue to you?

      interrupting upgrade

      Please provide the package NVR for which the bug is seen:

      leapp
      I could see the following in the upgrade logs:

      2025-06-16 09:20:08.430 DEBUG PID: 2214964 leapp.workflow.InterimPreparation.add_upgrade_boot_entry: External command has started: ['/usr/sbin/grubby', '--remove-kernel', '/boot/vmlinuz-upgrade.x86_64']
      2025-06-16 09:20:08.617 DEBUG PID: 2214964 leapp.workflow.InterimPreparation.add_upgrade_boot_entry: The param /boot/vmlinuz-upgrade.x86_64 is incorrect
      2025-06-16 09:20:08.621 DEBUG PID: 2214964 leapp.workflow.InterimPreparation.add_upgrade_boot_entry: Command ['/usr/sbin/grubby', '--remove-kernel', '/boot/vmlinuz-upgrade.x86_64'] failed with exit code 1.
      2025-06-16 09:20:08.623 DEBUG PID: 2214964 leapp.workflow.InterimPreparation.add_upgrade_boot_entry: External command has finished: ['/usr/sbin/grubby', '--remove-kernel', '/boot/vmlinuz-upgrade.x86_64']
      2025-06-16 09:20:08.624 WARNING PID: 2214964 leapp.workflow.InterimPreparation.add_upgrade_boot_entry: Could not remove /boot/vmlinuz-upgrade.x86_64 entry. May be ignored if the entry did not exist.
      grubby info BEFORE leapp upgrade

      [root@stha2n40781 ~]# grubby --info=ALL
      index=0
      kernel="/boot/vmlinuz-5.14.0-570.22.1.el9_6.x86_64"
      args="ro resume=/dev/mapper/rootvg-swap rd.lvm.lv=rootvg/root rd.lvm.lv=rootvg/swap rd.lvm.lv=rootvg/usr rd.plymouth=0 plymouth.enable=0 crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M $tuned_params"
      root="/dev/mapper/rootvg-root"
      initrd="/boot/initramfs-5.14.0-570.22.1.el9_6.x86_64.img $tuned_initrd"
      title="Red Hat Enterprise Linux (5.14.0-570.22.1.el9_6.x86_64) 9.6 (Plow)"
      id="ae5b4326d3cd450da7b16e607401aeea-5.14.0-570.22.1.el9_6.x86_64"
      index=1
      kernel="/boot/vmlinuz-5.14.0-570.21.1.el9_6.x86_64"
      args="ro resume=/dev/mapper/rootvg-swap rd.lvm.lv=rootvg/root rd.lvm.lv=rootvg/swap rd.lvm.lv=rootvg/usr rd.plymouth=0 plymouth.enable=0 crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M $tuned_params"
      root="/dev/mapper/rootvg-root"
      initrd="/boot/initramfs-5.14.0-570.21.1.el9_6.x86_64.img $tuned_initrd"
      title="Red Hat Enterprise Linux (5.14.0-570.21.1.el9_6.x86_64) 9.6 (Plow)"
      id="ae5b4326d3cd450da7b16e607401aeea-5.14.0-570.21.1.el9_6.x86_64"
      index=2
      kernel="/boot/vmlinuz-5.14.0-570.17.1.el9_6.x86_64"
      args="ro resume=/dev/mapper/rootvg-swap rd.lvm.lv=rootvg/root rd.lvm.lv=rootvg/swap rd.lvm.lv=rootvg/usr rd.plymouth=0 plymouth.enable=0 crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M $tuned_params"
      root="/dev/mapper/rootvg-root"
      initrd="/boot/initramfs-5.14.0-570.17.1.el9_6.x86_64.img $tuned_initrd"
      title="Red Hat Enterprise Linux (5.14.0-570.17.1.el9_6.x86_64) 9.6 (Plow)"
      id="ae5b4326d3cd450da7b16e607401aeea-5.14.0-570.17.1.el9_6.x86_64"
      index=3
      kernel="/boot/vmlinuz-0-rescue-ae5b4326d3cd450da7b16e607401aeea"
      args="ro resume=/dev/mapper/rootvg-swap rd.lvm.lv=rootvg/root rd.lvm.lv=rootvg/swap rd.lvm.lv=rootvg/usr crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M"
      root="/dev/mapper/rootvg-root"
      initrd="/boot/initramfs-0-rescue-ae5b4326d3cd450da7b16e607401aeea.img"
      title="Red Hat Enterprise Linux (0-rescue-ae5b4326d3cd450da7b16e607401aeea) 8.2 (Ootpa)"
      id="ae5b4326d3cd450da7b16e607401aeea-0-rescue"

      Grubby info after leapp upgrade, just before the final reboot

      [root@stha2n40781 ~]# grubby --info=ALL
      index=0
      kernel="/boot/vmlinuz-5.14.0-570.22.1.el9_6.x86_64"
      args="ro resume=/dev/mapper/rootvg-swap rd.lvm.lv=rootvg/root rd.lvm.lv=rootvg/swap rd.lvm.lv=rootvg/usr rd.plymouth=0 plymouth.enable=0 crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M $tuned_params"
      root="/dev/mapper/rootvg-root"
      initrd="/boot/initramfs-5.14.0-570.22.1.el9_6.x86_64.img $tuned_initrd"
      title="Red Hat Enterprise Linux (5.14.0-570.22.1.el9_6.x86_64) 9.6 (Plow)"
      id="ae5b4326d3cd450da7b16e607401aeea-5.14.0-570.22.1.el9_6.x86_64"
      index=1
      kernel="/boot/vmlinuz-5.14.0-570.21.1.el9_6.x86_64"
      args="ro resume=/dev/mapper/rootvg-swap rd.lvm.lv=rootvg/root rd.lvm.lv=rootvg/swap rd.lvm.lv=rootvg/usr rd.plymouth=0 plymouth.enable=0 crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M $tuned_params"
      root="/dev/mapper/rootvg-root"
      initrd="/boot/initramfs-5.14.0-570.21.1.el9_6.x86_64.img $tuned_initrd"
      title="Red Hat Enterprise Linux (5.14.0-570.21.1.el9_6.x86_64) 9.6 (Plow)"
      id="ae5b4326d3cd450da7b16e607401aeea-5.14.0-570.21.1.el9_6.x86_64"
      index=2
      kernel="/boot/vmlinuz-5.14.0-570.17.1.el9_6.x86_64"
      args="ro resume=/dev/mapper/rootvg-swap rd.lvm.lv=rootvg/root rd.lvm.lv=rootvg/swap rd.lvm.lv=rootvg/usr rd.plymouth=0 plymouth.enable=0 crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M $tuned_params"
      root="/dev/mapper/rootvg-root"
      initrd="/boot/initramfs-5.14.0-570.17.1.el9_6.x86_64.img $tuned_initrd"
      title="Red Hat Enterprise Linux (5.14.0-570.17.1.el9_6.x86_64) 9.6 (Plow)"
      id="ae5b4326d3cd450da7b16e607401aeea-5.14.0-570.17.1.el9_6.x86_64"
      index=3
      kernel="/boot/vmlinuz-0-rescue-ae5b4326d3cd450da7b16e607401aeea"
      args="ro resume=/dev/mapper/rootvg-swap rd.lvm.lv=rootvg/root rd.lvm.lv=rootvg/swap rd.lvm.lv=rootvg/usr crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M"
      root="/dev/mapper/rootvg-root"
      initrd="/boot/initramfs-0-rescue-ae5b4326d3cd450da7b16e607401aeea.img"
      title="Red Hat Enterprise Linux (0-rescue-ae5b4326d3cd450da7b16e607401aeea) 8.2 (Ootpa)"
      id="ae5b4326d3cd450da7b16e607401aeea-0-rescue"
      index=4
      kernel="/boot/vmlinuz-upgrade.x86_64"
      args="ro resume=/dev/mapper/rootvg-swap rd.lvm.lv=rootvg/root rd.lvm.lv=rootvg/swap rd.lvm.lv=rootvg/usr rd.plymouth=0 plymouth.enable=0 crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M $tuned_params enforcing=0 plymouth.enable=0 rd.plymouth=0"
      root="/dev/mapper/rootvg-root"
      initrd="/boot/initramfs-upgrade.x86_64.img"
      title="RHEL-Upgrade-Initramfs"
      id="ae5b4326d3cd450da7b16e607401aeea-upgrade.x86_64"

      Then the server perform the upgrade and reboot by itself and exit with this message

      Booting 'Red Hat Enterprise Linux (6.12.0-55.17.1.el10_0.x86_64) 10.0
      (Cougjlan)'

      error: ../../grub-core-fs/fshelp.c:257:file
      'initramfs-6.12.0-55.17.1.el10_0.x86_64.img' not found.

      Press any key ton continue...

              leapp-notifications leapp-notifications
              rhn-support-mabhosal Mahima Bhosale
              leapp-notifications leapp-notifications
              RHEL Upgrades QE Team RHEL Upgrades QE Team
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: