RHCSA Rapid Track
In this lab, you will configure your serverX system to boot
into different targets.
| Resources: | |
|---|---|
| Machines: | serverX |
Outcomes
A system booted into different targets.
Reset your
serverXsystem.
On your
serverXsystem, switch to themulti-usertarget manually without rebooting.[student@serverX ~]$sudo systemctl isolate multi-user.target
Log into a text-based console as
root.Configure your
serverXto automatically boot into themulti-usertarget after a reboot, then reboot yourserverXsystem to verify.[root@serverX ~]#systemctl set-default multi-user.targetrm '/etc/systemd/system/default.target' ln -s '/usr/lib/systemd/system/multi-user.target' '/etc/systemd/system/default.target'[root@serverX ~]#systemctl reboot
Reboot your
serverXsystem, then from within the boot loader menu, boot into therescuetarget.Reboot your
serverXmachine.[root@serverX ~]#systemctl rebootInterrupt the boot loader when the menu appears by pressing any key.
Move the selection to the default entry (the first one) using the cursor keys.
Press e to edit the current entry.
Move the cursor to the line that starts with
linux16.Move the cursor to the end of the line (using the End key), and append the following text:
systemd.unit=rescue.target
Press Ctrl+x to boot using the modified configuration.
When prompted for the
rootpassword, enterredhat.
Set the default
systemdtarget back to the graphical target.[root@serverX ~]#systemctl set-default graphical.targetPress Ctrl+d to continue booting into the (new) default target.