This commit is contained in:
@@ -4,11 +4,11 @@
|
||||
|
||||
1. 重启服务器在选取内核界面按 `e`
|
||||
|
||||
<img src="https://minio.offends.cn:9000/offends/images/image-20240706142021741.png">
|
||||
<img src="https://rustfs.offends.cn/offends/images/image-20240706142021741.png">
|
||||
|
||||
2. 找到以 `linux16` 开头的行添加如下内容
|
||||
|
||||
<img src="https://minio.offends.cn:9000/offends/images/image-20240706142326298.png">
|
||||
<img src="https://rustfs.offends.cn/offends/images/image-20240706142326298.png">
|
||||
|
||||
3. 按 `Ctrl+x` 保存
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
mount -o remount, rw /
|
||||
```
|
||||
|
||||
<img src="https://minio.offends.cn:9000/offends/images/image-20240706142853583.png">
|
||||
<img src="https://rustfs.offends.cn/offends/images/image-20240706142853583.png">
|
||||
|
||||
5. 重置密码(密码不能过于简单)
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
passwd root
|
||||
```
|
||||
|
||||
<img src="https://minio.offends.cn:9000/offends/images/image-20240706143013863.png">
|
||||
<img src="https://rustfs.offends.cn/offends/images/image-20240706143013863.png">
|
||||
|
||||
6. 创建此文件让系统启动全盘的 SELinux 上下文重新标记
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
touch /.autorelabel
|
||||
```
|
||||
|
||||
<img src="https://minio.offends.cn:9000/offends/images/image-20240706143459451.png">
|
||||
<img src="https://rustfs.offends.cn/offends/images/image-20240706143459451.png">
|
||||
|
||||
7. 重启 init 进程让系统恢复到正常的多用户运行级别
|
||||
|
||||
|
||||
Reference in New Issue
Block a user