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 serverX system.
On your serverX system, switch to the
multi-user target manually without rebooting.
[student@serverX ~]$sudo systemctl isolate multi-user.target
Log into a text-based console as root.
Configure your serverX to automatically boot into the
multi-user target after a reboot, then reboot your
serverX system 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 serverX system, then from within the
boot loader menu, boot into the rescue target.
Reboot your serverX machine.
[root@serverX ~]#systemctl reboot
Interrupt 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 root password, enter
redhat.
Set the default systemd target back to the graphical
target.
[root@serverX ~]#systemctl set-default graphical.target
Press Ctrl+d to continue booting into the (new) default target.