In this lab, you will repair an issue with the boot loader configuration on one of your machines.
| Resources: | |
|---|---|
| Machines: |
serverX
|
Outcomes:
A machine that boots normally without user intervention.
Reset your serverX system.
Log in and set up your serverX system:
[student@serverX ~]$lab bootbreakgrub setup
One of your former co-workers was experimenting with speeding up the boot process on one of your machines. After a number of failed attempts, you have now been tasked with repairing the damage done.
Look at the console of your serverX machine, then reboot the machine and
interrupt the boot loader countdown timer.
Send a Ctrl+Alt+Del to your system using the relevant button or menu entry.
When the boot loader menu appears, press any key to interrupt the countdown.
Move the cursor to the default boot entry, then press e to edit that entry. Inspect the configuration closely, looking for anything that seems out of the ordinary.
Find the line that is blocking the boot process, modify it, then boot with these changes.
os16 is not a valid grub
directive. Change it to linux16.
Press Ctrl+x to boot your system with the modified configuration.
Wait for the system to boot, log in as student, elevate
your privileges to root, then generate a new
grub2 configuration. Do not immediately overwrite
the existing configuration, but inspect the new config first.
[student@serverX ~]$sudo -i[root@serverX ~]#grub2-mkconfig
Scroll through the output to see if it looks like a valid grub2 configuration.
Commit the configuration to disk.
[root@serverX ~]#grub2-mkconfig > /boot/grub2/grub.cfg
Reboot your machine, and check if it boots normally again without user intervention.
[root@serverX ~]#systemctl reboot