LFCS · Question #737
After modifying GNU GRUB's configuration file, which command must be run for the changes to take effect?
The correct answer is D. No action is required. After modifying GNU GRUB's configuration file (e.g., /boot/grub/grub.cfg), no immediate command is required because GRUB reads this file directly during the boot process.
Question
Options
- Akill -HUP $(pidof grub)
- Bgrub-install
- Cgrub
- DNo action is required
How the community answered
(44 responses)- A7% (3)
- B2% (1)
- C2% (1)
- D89% (39)
Why each option
After modifying GNU GRUB's configuration file (e.g., `/boot/grub/grub.cfg`), no immediate command is required because GRUB reads this file directly during the boot process.
`kill -HUP $(pidof grub)` is irrelevant because GRUB is a bootloader that executes before the operating system and is not a running process to be signaled within the OS.
`grub-install` is used to install GRUB to the Master Boot Record (MBR) or UEFI partition, not to apply configuration changes.
The command `grub` by itself typically enters a GRUB shell for interactive configuration, but does not apply changes from a configuration file to the bootloader without further actions.
When the GRUB configuration file, typically `/boot/grub/grub.cfg` (generated from `/etc/default/grub` and scripts in `/etc/grub.d/`), is directly modified, GRUB reads this file each time the system boots. Therefore, no additional command is needed for the changes to take effect on the next reboot.
Concept tested: GRUB configuration update mechanism
Source: https://www.gnu.org/software/grub/manual/grub/html_node/Configuration.html
Topics
Community Discussion
No community discussion yet for this question.