Difficulty: Easy
Correct Answer: /etc/lilo.conf
Explanation:
Introduction / Context:
On systems that use LILO (Linux Loader) rather than GRUB, adding a new kernel requires updating the bootloader configuration so the boot menu knows about the new image and its initrd. Knowing the correct configuration file and update procedure is essential for a successful reboot.
Given Data / Assumptions:
Concept / Approach:
LILO reads its configuration from /etc/lilo.conf. After editing this file to add or update an image stanza pointing to the new kernel (and initrd), you must run the lilo command to write the boot sector map. Without re-running lilo, changes will not take effect and the system may still boot the old kernel.
Step-by-Step Solution:
Verification / Alternative check:
Run lilo -v for verbose output; confirm that the new kernel is listed. If using GRUB instead of LILO, the file would be different (for example, /boot/grub/grub.conf or later /boot/grub2/grub.cfg managed by tools).
Why Other Options Are Wrong:
Common Pitfalls:
Forgetting to rerun lilo after editing the config, mis-typing the kernel path, or omitting a required initrd line for modular kernels. Always keep the old kernel as a fallback entry.
Final Answer:
/etc/lilo.conf
Discussion & Comments