Question 560
Before changing a Linux system, an engineer observes: A GRUB 2 system contains multiple installed kernels but a manually edited grub.cfg is overwritten during updates. Which check most directly isolates the relevant cause or prerequisite?
Explanation
Correct Answer
Inspect source configuration scripts and generated output rather than editing the generated file blindly. This isolates the relevant condition before applying a change. The appropriate corrective response is: Make persistent changes in the supported GRUB source configuration and regenerate grub.cfg.
Incorrect Answers
Inspect firmware mode and the intended target disk or EFI location before installing GRUB. That would matter when a newly installed Linux root filesystem contains GRUB packages but the disk lacks executable bootloader installation. The relevant distinction in this case is: Inspect source configuration scripts and generated output rather than editing the generated file blindly.
Inspect the active generated GRUB configuration and how the distribution constructs it. That would matter when an administrator edits /etc/default/grub but the kernel command line is unchanged after reboot. It does not address this case's requirement: A GRUB 2 system contains multiple installed kernels but a manually edited grub.cfg is overwritten during updates.
Inspect GRUB's visible devices and kernel and initramfs paths before changing partitions. That would matter when a host is stranded at the GRUB prompt after a disk change but the Linux partitions remain intact. That separate mechanism does not verify the needed Linux administration outcome in this case.