System Management

A RHEL 9 administrator has installed a newer kernel, 5.14.0-427.el9.x86_64, but the server is still running an older kernel. The initramfs for the newer kernel must be rebuilt, overwriting the existing file. Which command does this?

Show the answer

Correct answerC. dracut --force /boot/initramfs-5.14.0-427.el9.x86_64.img 5.14.0-427.el9.x86_64

dracut takes the output image path followed by the kernel version, so both must be given to build for a kernel that is not running. Omitting the version makes dracut build for the running kernel, so the new file would hold the wrong modules. lsinitrd only lists image contents.