Skip to content

Commit 978bd96

Browse files
authored
editing 10-boot.md changes (and other items missed the first time around) (#2663)
* reword passive voice phrases * auto-formatting of table handled by editor * add missing fenced code block contexts * consistently use system commands within back ticks * other minor rewording
1 parent 0483046 commit 978bd96

File tree

1 file changed

+37
-37
lines changed

1 file changed

+37
-37
lines changed

docs/books/admin_guide/10-boot.md

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ In this chapter, you will learn how the system starts.
1010
**Objectives**: In this chapter, future Linux administrators will learn:
1111

1212
:heavy_check_mark: The different stages of the booting process;
13-
:heavy_check_mark: How Rocky Linux supports this boot by using GRUB2 and systemd;
13+
:heavy_check_mark: How Rocky Linux supports this boot by using GRUB2 and `systemd`;
1414
:heavy_check_mark: How to protect GRUB2 from an attack;
1515
:heavy_check_mark: How to manage the services;
1616
:heavy_check_mark: How to access logs from `journald`.
@@ -25,7 +25,7 @@ In this chapter, you will learn how the system starts.
2525

2626
## The boot process
2727

28-
It is important to understand the boot process of Linux in order to be able to solve problems that may occur.
28+
It is important to understand the boot process of Linux to be able to solve problems that might occur.
2929

3030
The boot process includes:
3131

@@ -78,9 +78,9 @@ root 1 0 0 02:10 ? 00:00:02 /usr/lib/systemd/systemd --swi
7878

7979
### `systemd`
8080

81-
Systemd is the parent of all system processes. It reads the target of the `/etc/systemd/system/default.target` link (e.g., `/usr/lib/systemd/system/multi-user.target`) to determine the default target of the system. The file defines the services to be started.
81+
`systemd` is the parent of all system processes. It reads the target of the `/etc/systemd/system/default.target` link (e.g., `/usr/lib/systemd/system/multi-user.target`) to determine the default target of the system. The file defines the services to start.
8282

83-
Systemd then places the system in the target-defined state by performing the following initialization tasks:
83+
`systemd` then places the system in the target-defined state by performing the following initialization tasks:
8484

8585
1. Set the machine name
8686
2. Initialize the network
@@ -113,18 +113,18 @@ To password protect the GRUB2 bootloader:
113113

114114
2. Paste the password ciphertext in the last line of the **/etc/grub.d/00_header** file. The pasted format is as follows:
115115

116-
```
116+
```bash
117117
cat <<EOF
118118
set superusers='frank'
119119
password_obkdf2 frank grub.pbkdf2.sha512.10000.D0182EDB28164C19454FA94421D1ECD6309F076F1135A2E5BFE91A5088BD9EC87687FE14794BE7194F67EA39A8565E868A41C639572F6156900C81C08C1E8413.40F6981C22F1F81B32E45EC915F2AB6E2635D9A62C0BA67105A9B900D9F365860E84F1B92B2EF3AA0F83CECC68E13BA9F4174922877910F026DED961F6592BB7
120120
EOF
121121
```
122122
123-
The 'frank' user can be replaced with any custom user.
123+
You can replace the 'frank' user with any custom user.
124124
125125
You can also set a plaintext password, for example:
126126
127-
```
127+
```bash
128128
cat <<EOF
129129
set superusers='frank'
130130
password frank rockylinux8.x
@@ -135,7 +135,7 @@ To password protect the GRUB2 bootloader:
135135
136136
4. Restart the operating system to verify the encryption of GRUB2. Select the first boot menu item and type the ++"e"++ key, and then enter the corresponding user and password.
137137
138-
```
138+
```bash
139139
Enter username:
140140
frank
141141
Enter password:
@@ -146,10 +146,10 @@ To password protect the GRUB2 bootloader:
146146
147147
Sometimes you may see in some documents that the `grub2-set-password` (`grub2-setpassword`) command is used to protect the GRUB2 bootloader:
148148
149-
| command | Core functions | Configuration file modification method | automaticity |
150-
| :--- | :--- | :--- | :--- |
151-
| `grub2-set-password` | Set password and update configuration | Auto Completion | high |
152-
| `grub2-mkpasswd-pbkdf2` | Only generate encrypted hash values | Manual editing is required | low |
149+
| command | Core functions | Configuration file modification method | automaticity |
150+
|-------------------------|---------------------------------------|----------------------------------------|--------------|
151+
| `grub2-set-password` | Set password and update configuration | Auto Completion | high |
152+
| `grub2-mkpasswd-pbkdf2` | Only generate encrypted hash values | Requires manual editing | low |
153153
154154
Log in to the operating system as the root user and execute the `gurb2-set-password` command as follows:
155155
@@ -170,7 +170,7 @@ After executing the `grub2-set-password` command, the **/boot/grub2/user.cfg** f
170170
171171
Select the first boot menu item and type the ++"e"++ key, and then enter the corresponding user and password:
172172
173-
```
173+
```bash
174174
Enter username:
175175
root
176176
Enter password:
@@ -181,16 +181,16 @@ Enter password:
181181
182182
*Systemd* is a service manager for the Linux operating systems.
183183
184-
It is developed to:
184+
The development of `systemd` was to:
185185
186186
* remain compatible with older SysV initialization scripts,
187187
* provide many features, such as parallel start of system services at system startup, on-demand activation of daemons, support for snapshots, or management of dependencies between services.
188188
189189
!!! Note
190190
191-
Systemd is the default initialization system since RedHat/CentOS 7.
191+
`systemd` is the default initialization system since RedHat/CentOS 7.
192192
193-
Systemd introduces the concept of unit files, also known as systemd units.
193+
`systemd` introduces the concept of unit files, also known as `systemd` units.
194194
195195
| Type | File extension | Functionality |
196196
|--------------|----------------|------------------------------------------|
@@ -202,25 +202,25 @@ Systemd introduces the concept of unit files, also known as systemd units.
202202
203203
There are many types of units: Device unit, Mount unit, Path unit, Scope unit, Slice unit, Snapshot unit, Socket unit, Swap unit, Timer unit.
204204
205-
* Systemd supports system state snapshots and restore.
205+
* `systemd` supports system state snapshots and restore.
206206
207-
* Mount points can be configured as systemd targets.
207+
* You can configure mount points as `systemd` targets.
208208
209-
* At startup, systemd creates listening sockets for all system services that support this type of activation and passes these sockets to these services as soon as they are started. This makes it possible to restart a service without losing a single message sent to it by the network during its unavailability. The corresponding socket remains accessible and all messages are queued.
209+
* At startup, `systemd` creates listening sockets for all system services that support this type of activation and passes these sockets to these services as soon as they start. This makes it possible to restart a service without losing a single message sent to it by the network during its unavailability. The corresponding socket remains accessible all messages queue up.
210210
211-
* System services that use D-BUS for their inter-process communications can be started on demand the first time they are used by a client.
211+
* System services that use D-BUS for their inter-process communications can start on-demand the first time the client uses them.
212212
213-
* Systemd stops or restarts only running services. Previous versions (before RHEL7) attempted to stop services directly without checking their current status.
213+
* `systemd` stops or restarts only running services. Previous versions (before RHEL7) attempted to stop services directly without checking their current status.
214214
215215
* System services do not inherit any context (like HOME and PATH environment variables). Each service operates in its own execution context.
216216
217217
All service unit operations are subject to a default timeout of 5 minutes to prevent a malfunctioning service from freezing the system.
218218
219-
Due to space limitations, this document will not provide a very detailed introduction to Systemd. If you are interested in Systemd, we have provided a very detailed introduction in [this document](./16-about-sytemd.md),
219+
Due to space limitations, this document will not provide a very detailed introduction to `systemd`. If you have an interest in exploring `systemd` further, there is a very detailed introduction in [this document](./16-about-sytemd.md),
220220
221221
### Managing system services
222222
223-
Service units end with the `.service` file extension and have a similar purpose to init scripts. The `systemctl` command is used to `display`, `start`, `stop`, `restart` a system service:
223+
Service units end with the `.service` file extension and have a similar purpose to init scripts. The use of `systemctl` command is to `display`, `start`, `stop`, or `restart` a system service:
224224
225225
| systemctl | Description |
226226
|-------------------------------------------|-----------------------------------------|
@@ -256,7 +256,7 @@ To list all units currently loaded:
256256
systemctl list-units --type service
257257
```
258258
259-
To list all units to check if they are activated:
259+
To check the activation status of all units, you can list them with:
260260
261261
```bash
262262
systemctl list-unit-files --type service
@@ -294,11 +294,11 @@ WantedBy=multi-user.target
294294
295295
### Using system targets
296296
297-
On Rocky8/RHEL8, the concept of run levels has been replaced by Systemd targets.
297+
`systemd` targets replace the concept of run levels on Rocky8/RHEL8.
298298
299-
Systemd targets are represented by target units. Target units end with the `.target` file extension and their sole purpose is to group other Systemd units into a chain of dependencies.
299+
The representation of `systemd` targets is by target units. Target units end with the `.target` file extension and their sole purpose is to group other `systemd` units into a chain of dependencies.
300300
301-
For example, the `graphical.target` unit, which is used to start a graphical session, starts system services such as the **GNOME display manager** (`gdm.service`) or the **accounts service** (`accounts-daemon.service`) and also activates the `multi-user.target` unit.
301+
For example, the `graphical.target` unit that starts a graphical session, starts system services such as the **GNOME display manager** (`gdm.service`) or the **accounts service** (`accounts-daemon.service`) and also activates the `multi-user.target` unit.
302302
303303
Similarly, the `multi-user.target` unit starts other essential system services, such as **NetworkManager** (`NetworkManager.service`) or **D-Bus** (`dbus.service`) and activates another target unit named `basic.target`.
304304
@@ -312,7 +312,7 @@ Similarly, the `multi-user.target` unit starts other essential system services,
312312
313313
#### The default target
314314
315-
To determine which target is used by default:
315+
To determine the default target used by default:
316316
317317
```bash
318318
systemctl get-default
@@ -383,7 +383,7 @@ To change the current target and enter `rescue mode` in the current session:
383383
systemctl rescue
384384
```
385385
386-
**Emergency mode** provides the most minimalist environment possible and allows the system to be repaired even in situations where the system is unable to enter rescue mode. In the emergency mode, the system mounts the root file system only for reading. It will not attempt to mount any other local file system, will not activate any network interface, and will start some essential services.
386+
**Emergency mode** provides the most minimalist environment possible and allows the repairing of the system even in situations where the system is unable to enter rescue mode. In the emergency mode, the system mounts the root file system only for reading. It will not attempt to mount any other local file system, will not activate any network interface, and will start some essential services.
387387
388388
To change the current target and enter emergency mode in the current session:
389389
@@ -393,7 +393,7 @@ systemctl emergency
393393
394394
#### Shutdown, suspension and hibernation
395395
396-
The `systemctl` command replaces a number of power management commands used in previous versions:
396+
The `systemctl` command replaces many power management commands used in previous versions:
397397
398398
|Old command | New command | Description |
399399
|---------------------|--------------------------|------------------------|
@@ -406,9 +406,9 @@ The `systemctl` command replaces a number of power management commands used in p
406406
407407
### The `journald` process
408408
409-
Log files can, in addition to `rsyslogd`, also be managed by the `journald` daemon which is a component of `systemd`.
409+
You can manage log files can, in addition to `rsyslogd`, with the `journald` daemon that is a component of `systemd`.
410410
411-
The `journald` daemon captures Syslog messages, kernel log messages, messages from the initial RAM disk and from the start of boot, as well as messages written to the standard output and the standard error output of all services, then indexes them and makes them available to the user.
411+
The `journald` daemon captures Syslog messages, kernel log messages, messages from the initial RAM disk and from the start of boot, and messages written to the standard output and the standard error output of all services, then indexes them and makes them available to the user.
412412
413413
The format of the native log file, which is a structured and indexed binary file, improves searches and allows for faster operation, it also stores metadata information, such as timestamps or user IDs.
414414
@@ -422,10 +422,10 @@ journalctl
422422
423423
The command lists all log files generated on the system. The structure of this output is similar to that used in `/var/log/messages/` but it offers some improvements:
424424
425-
* the priority of entries is marked visually;
426-
* timestamps are converted to the local time zone of your system;
427-
* all logged data is displayed, including rotating logs;
428-
* the beginning of a start is marked with a special line.
425+
* shows the priority of entries is visually marked
426+
* shows the conversion of timestamps to the local time zone of your system
427+
* all logged data is displayed, including rotating logs
428+
* shows the marking of the beginning of a start with a special line
429429
430430
#### Using continuous display
431431
@@ -435,7 +435,7 @@ With continuous display, log messages are displayed in real time.
435435
journalctl -f
436436
```
437437
438-
This command returns a list of the ten most recent log lines. The journalctl utility then continues to run and waits for new changes to occur before displaying them immediately.
438+
This command returns a list of the ten most recent log lines. The `journalctl` utility then continues to run and waits for new changes to occur before displaying them immediately.
439439
440440
#### Filtering messages
441441

0 commit comments

Comments
 (0)