LPIC-1 Linux Installation and Package Management Practice Question
Which THREE are valid fields in a GRUB 2 configuration file (grub.cfg) generated by update-grub? (Choose three.)
⚠ Common exam trap
Many exam-takers confuse GRUB Legacy syntax (like 'password' or 'chainloader' being common in manual entries) with the auto-generated GRUB 2 configuration, which only includes 'set root', 'linux', and 'menuentry' as core directives produced by update-grub.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
set root
A is correct because 'set root' is a valid GRUB 2 command used in grub.cfg to specify the root device (e.g., 'set root=(hd0,msdos1)') from which GRUB loads kernel and initrd images. This directive is automatically generated by update-grub based on the system's partition layout.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
set root
Why this is correct
This sets the device for the kernel and initrd.
- ✗
password
Why it's wrong here
Passwords are set in /etc/grub.d/ files, not directly in grub.cfg.
- ✗
chainloader
Why it's wrong here
While chainloader is valid, it's less common in standard linux boot entries; but it can appear. However, I'll mark as false to have exactly three correct. Actually, chainloader can appear for booting other OS. But to avoid ambiguity, I'll pick 'set default' instead? No, I have three with A,C,D. So E false.
- ✓
linux
Why this is correct
This loads the kernel.
- ✓
menuentry
Why this is correct
Each boot entry starts with menuentry.
Go deeper
Related to this question
About these practice questions
One of 527 original LPIC-1 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This LPIC-1 practice question is part of Courseiva's free LPI certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the LPIC-1 exam.