grub.cfg not updated and no initramfs in /boot after new kernel install

Solution Verified - Updated -

Issue

  • When trying to install a new kernel, no error seen but the corresponding initramfs does not appear in /boot:
Transaction ID : 67
Begin time     : Wed 30 Aug 2023 11:53:59 PM UTC
Begin rpmdb    : 702:de1a644c07201321354354353c65d6d43
End time       : Wed 30 Aug 2023 11:54:49 PM UTC (50 seconds)
End rpmdb      : 705:961d66fezfrgt4545fzef5rg5d1f0ecc67243216c
User           :  <rsouthard-adm>
Return-Code    : Success
Releasever     : 8.8
Command Line   : update bpftool-4.18.0-477.10.1.el8_8.x86_64.rpm 
kernel-4.18.0-477.10.1.el8_8.x86_64.rpm 
kernel-core-4.18.0-477.10.1.el8_8.x86_64.rpm 
kernel-modules-4.18.0-477.10.1.el8_8.x86
_64.rpm kernel-tools-4.18.0-477.10.1.el8_8.x86_64.rpm 
kernel-tools-libs-4.18.0-477.10.1.el8_8.x86_64.rpm
Comment        :
Packages Altered:
    Install kernel-4.18.0-477.10.1.el8_8.x86_64         @@commandline
    Install kernel-core-4.18.0-477.10.1.el8_8.x86_64    @@commandline
    Install kernel-modules-4.18.0-477.10.1.el8_8.x86_64 @@commandline
  • There is no initramfs for new kernel 4.18.0-477.10 in /boot:
/boot:
total 79000
dr-xr-xr-x.  7 0 0     4096 Sep  7 22:56 .
dr-xr-xr-x. 20 0 0      272 Jun 25 19:20 ..
-rw-r--r--.  1 0 0      173 Mar 17 06:14 .vmlinuz-4.18.0-425.19.2.el8_7.x86_64.hmac
drwxr-xr-x.  2 0 0        6 Sep 14 13:02 0c59403e8ef01d94d99ad27rd79695ed
drwxr-xr-x.  4 0 0       78 Jul 21 21:07 7ce2939d631c4403e8ef01d94d99ad27
-rw-------.  1 0 0  4404089 Mar 17 06:15 System.map-4.18.0-425.19.2.el8_7.x86_64
-rw-r--r--.  1 0 0   198608 Mar 17 06:15 config-4.18.0-425.19.2.el8_7.x86_64
drwx------.  3 0 0    16384 Jan  1  1970 efi
drwx------.  4 0 0      101 Sep 12 19:57 grub2
-rw-------.  1 0 0 32779777 Sep  7 22:56 initramfs-4.18.0-425.19.2.el8_7.x86_64.backup.img
-rw-------.  1 0 0 32737706 Sep  7 23:01 initramfs-4.18.0-425.19.2.el8_7.x86_64.img
drwxr-xr-x.  3 0 0       21 Feb 28  2022 loader
lrwxrwxrwx.  1 0 0       52 May  2 20:40 symvers-4.18.0-425.19.2.el8_7.x86_64.gz -> /lib/modules/4.18.0-425.19.2.el8_7.x86_64/symvers.gz
-rwxr-xr-x.  1 0 0 10743152 Mar 17 06:15 vmlinuz-4.18.0-425.19.2.el8_7.x86_64
  • Instead I can see an initrd under the BLS entry:
/boot/7ce2939d403e8ef01d94d99ad27/4.18.0-477.15.1.el8_8.x86_64:
total 32028
drwxr-xr-x. 2 0 0       20 Jul 21 21:08 .
drwxr-xr-x. 4 0 0       78 Jul 21 21:07 ..
-rw-------. 1 0 0 32795596 Jul 21 21:08 initrd

Environment

  • Red Hat Enterprise Linux 8
  • kernel
  • dracut

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content