tech:systemd_mode_recovery_single_mode_linux_kernel_param
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| tech:systemd_mode_recovery_single_mode_linux_kernel_param [2025/03/24 15:06] – créée - modification externe 127.0.0.1 | tech:systemd_mode_recovery_single_mode_linux_kernel_param [2025/10/06 15:07] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | < | ||
| {{tag> | {{tag> | ||
| - | = SystemD mode recovery single mode linux kernel param | + | # SystemD mode recovery single mode linux kernel param |
| - | '' | + | Parametre Kernel |
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| - | Ou | ||
| - | |||
| - | '' | ||
| pour allez dans le tty8 ou tty9 | pour allez dans le tty8 ou tty9 | ||
| ce qui revient à | ce qui revient à | ||
| - | < | + | ~~~bash |
| systemctl enable debug-shell.service | systemctl enable debug-shell.service | ||
| - | </ | + | ~~~ |
| - | == Avec init=/ | + | ## Avec init=/ |
| Dans le grub, ligne commençant par **linux** | Dans le grub, ligne commençant par **linux** | ||
| - | <code -> | + | ~~~ |
| init=/ | init=/ | ||
| - | </ | + | ~~~ |
| - | < | + | ~~~bash |
| mount -n -o remount,rw / | mount -n -o remount,rw / | ||
| passwd | passwd | ||
| reboot -f | reboot -f | ||
| - | </ | + | ~~~ |
| - | == rd.break | + | ## rd.break |
| kernel param '' | kernel param '' | ||
| + | Si SeLinux : ajouter : '' | ||
| + | |||
| + | Exemple : | ||
| + | ~~~ | ||
| + | rd.break enforcing=0 | ||
| + | ~~~ | ||
| Puis | Puis | ||
| - | < | + | ~~~bash |
| loadkeys fr | loadkeys fr | ||
| chroot /sysroot | chroot /sysroot | ||
| - | </ | + | ~~~ |
| Ligne 45: | Ligne 52: | ||
| - | == Sur RedHat | + | ## Sur RedHat |
| **rd.break** \\ | **rd.break** \\ | ||
| ? **enforcing=0** | ? **enforcing=0** | ||
| - | < | + | ~~~bash |
| mount -o remount,rw /sysroot | mount -o remount,rw /sysroot | ||
| Ligne 62: | Ligne 69: | ||
| #puis | #puis | ||
| restorecon -Rv / | restorecon -Rv / | ||
| - | </ | + | ~~~ |
| - | === Alternative à touch / | + | ### Alternative à touch / |
| Ligne 76: | Ligne 83: | ||
| * Press Ctrl x to resume the boot process. | * Press Ctrl x to resume the boot process. | ||
| NOTE: If you did not change " | NOTE: If you did not change " | ||
| - | < | + | ~~~bash |
| mount –o remount,rw /sysroot | mount –o remount,rw /sysroot | ||
| chroot /sysroot | chroot /sysroot | ||
| passwd root | passwd root | ||
| - | </ | + | ~~~ |
| * Type exit twice to continue the boot process | * Type exit twice to continue the boot process | ||
| * Log in, open a terminal and enter the root account. | * Log in, open a terminal and enter the root account. | ||
| - | < | + | ~~~bash |
| restorecon -v /etc/shadow | restorecon -v /etc/shadow | ||
| setenforce 1 ; getenforce | setenforce 1 ; getenforce | ||
| - | </ | + | ~~~ |
tech/systemd_mode_recovery_single_mode_linux_kernel_param.1742825205.txt.gz · Dernière modification : de 127.0.0.1
