systemd Targets and Boot Selection
Two objectives: booting into a target manually, and configuring the default. Both are one command each. The part worth the guide is that set-default is a symlink - the same mechanism as enabling a service - and that isolate will disconnect you from a remote machine whatever target you give it.
Operating Running Systems Guide 23 of 67 Intermediate
- OSRHEL 10.0
- Kernel6.12.0-55.9.1.el10_0
- dnf4.20.0
- Flatpak1.16.0
- TimeAbout 13 min
Targets replaced SysV runlevels. runlevel still reports a number and telinit 3 still works, both through compatibility shims: multi-user.target is runlevel 3 and graphical.target is runlevel 5. The modern names are what the exam uses.
| Server Name | IP Address | OS | Roles | CPU | RAM | HDD |
|---|---|---|---|---|---|---|
| RHCSA-A01 | 192.168.0.31 | RHEL 10.0 | Practice node (graded) - spare /dev/sda | 2 Core | 4 GB | 50 GB + 15 GB |
This guide includes
Use this for two objectives at once - booting into a target, and setting the default. This matters because switching target at runtime over ssh can take your own session down with it.
- reading what a target actually is
- identifying the four that matter
- setting the default target
- switching at runtime, and understanding why not to do it over ssh
Before you start
- A sudo-capable account.
- The session changes the default target and changes it back.
-
What a target actually is
-
The four that matter
-
Setting the default
-
Switching at runtime, and why not over ssh