-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
rhel-9.6
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...
- duplicates
-
RHEL-102591 Just upgraded system to RHEL10 crashes because initramfs was not generated
-
- Release Pending
-
- relates to
-
RHEL-85223 Fail to boot after attempted upgrade to RHEL-10 (doing 7 to 10 subsequent upgrades) - missing initramfs
-
- Closed
-