A Red Hat Enterprise Linux 9 server will soon boot from a new RAID array that uses an LSI MegaRAID SAS controller. The controller's kernel module (megaraid_sas) has been installed and loads correctly with modprobe, but it is not present in the current initramfs image. To regenerate the initramfs for the running kernel and guarantee that the driver is built into the image, which single command should the administrator run from the shell?
The dracut utility is the supported tool for building initramfs images on RHEL 7 and later. When no image name or kernel version is supplied, dracut targets the image whose name and location are defined by the distribution-typically /boot/initramfs-$(uname -r).img for the running kernel.
The --add-drivers option appends one or more kernel modules, supplied as a quoted, space-separated list without the .ko suffix, ensuring they are copied into the new image.
The --force option overwrites any existing image with the same name.
Therefore dracut --force --add-drivers "megaraid_sas" rebuilds the image for the current kernel and embeds the driver so the system can access the RAID controller early in the boot process.
The other choices are incorrect:
Using --omit-drivers explicitly excludes the module.
mkinitrd is a legacy tool and its syntax differs from dracut; it is not the recommended utility on modern RHEL systems.
update-initramfs is provided by Debian-based distributions, not by RHEL, and it lacks an option to add individual drivers with a single flag.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is initramfs and why is it important during boot?
Open an interactive chat with Bash
What is the purpose of the dracut utility in RHEL-based systems?
Open an interactive chat with Bash
Why does the LSI MegaRAID SAS driver need to be added to initramfs?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
System Management
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .