You are preparing a RHEL-based server that boots with GRUB 2 on a BIOS system. The kernel must always start with the noapic parameter, and the setting must be preserved when new kernels are installed. After making the change you will regenerate the boot-loader configuration with:
grub2-mkconfig -o /boot/grub2/grub.cfg
Which single configuration file should you edit before running the command so the new parameter is applied persistently?
GRUB 2's human-editable settings are stored in /etc/default/grub. When grub2-mkconfig runs, it combines the values in this file (especially the GRUB_CMDLINE_LINUX line) with the scripts in /etc/grub.d/ to build a fresh /boot/grub2/grub.cfg. Editing /etc/default/grub therefore ensures that any kernel parameters you add-such as noapic-are written into every menu entry and are kept when future kernels are installed.
The other choices are unsuitable:
/boot/grub2/grub.cfg is the generated file; any manual edits are overwritten the next time grub2-mkconfig or a kernel update runs.
/etc/grub.d/10_linux is a script snippet, not the central place for simple kernel-parameter changes, and editing it risks syntax errors that break the whole menu.
/boot/grub2/custom.cfg is intended for custom menu entries only; modifications there are not propagated to new kernels installed by the package manager.
Therefore, editing /etc/default/grub is the correct and supported method.
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.
Why is /etc/default/grub used for kernel parameter changes?
Open an interactive chat with Bash
What happens if you manually edit /boot/grub2/grub.cfg instead?
Open an interactive chat with Bash
What is the purpose of /etc/grub.d/10_linux?
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...
IT & Cybersecurity Package Join Premium for Full Access