Updated Centos 8 to stream, missing initrd for new kernel

Issues related to applications and software problems and general support
Post Reply
raskolnikov88
Posts: 1
Joined: 2022/01/28 22:01:58

Updated Centos 8 to stream, missing initrd for new kernel

Post by raskolnikov88 » 2022/01/28 22:09:29

I've updated a centos 8.5 instance with all final updates to centos stream, via the following commands:

# dnf swap centos-linux-repos centos-stream-repos
# dnf distro-sync

It was a complete success, except for one small problem:
"Running scriptlet: kernel-core-4.18.0-358.el8.x86_64 868/868
dracut: dracut module 'network-legacy' cannot be found or installed.
warning: %posttrans(kernel-core-4.18.0-358.el8.x86_64) scriptlet failed, exit status 1

Running mkinitrd by hand confirmed the same thing:
# mkinitrd /boot/initramfs-4.18.0-358.el8.x86_64.img 4.18.0-358.el8.x86_64
Creating: target|kernel|dracut args|basicmodules
dracut: dracut module 'network-legacy' cannot be found or installed.

I salvaged the machine by making the older kernel the default in grub, but I'd like to get kernel updates moving forward.

Is there a fix?

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Updated Centos 8 to stream, missing initrd for new kernel

Post by TrevorH » 2022/01/29 01:30:29

Is dracut-network installed? If not, install it.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply