Outils pour utilisateurs

Outils du site


tech:systemd_mode_recovery_single_mode_linux_kernel_param

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

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.1tech:systemd_mode_recovery_single_mode_linux_kernel_param [2025/10/06 15:07] (Version actuelle) Jean-Baptiste
Ligne 1: Ligne 1:
 +<!DOCTYPE markdown>
 {{tag>Brouillon Kernel Systemd CA}} {{tag>Brouillon Kernel Systemd CA}}
  
-SystemD mode recovery single mode linux kernel param+SystemD mode recovery single mode linux kernel param
  
-''systemd.unit=rescue.target''+Parametre Kernel 
 +  * ''systemd.unit=rescue.target'' 
 +  * ''systemd.debug-shell=1'' 
 +  * ''systemd.unit=emergency.target''
  
-Ou  
- 
-''systemd.debug-shell=1'' 
 pour allez dans le tty8 ou tty9 pour allez dans le tty8 ou tty9
  
 ce qui revient à  ce qui revient à 
-<code bash>+~~~bash
 systemctl enable debug-shell.service systemctl enable debug-shell.service
-</code>+~~~
  
-== Avec init=/bin/bash (à l'ancienne)+## Avec init=/bin/bash (à l'ancienne)
  
 Dans le grub, ligne commençant par **linux** Dans le grub, ligne commençant par **linux**
-<code ->+~~~
 init=/bin/bash init=/bin/bash
-</code>+~~~
  
  
-<code bash>+~~~bash
 mount -n -o remount,rw / mount -n -o remount,rw /
 passwd passwd
 reboot -f reboot -f
-</code>+~~~
  
  
-== rd.break+## rd.break
  
 kernel param ''rd.break'' kernel param ''rd.break''
 +Si SeLinux : ajouter : ''enforcing=0''
 +
 +Exemple :
 +~~~
 +rd.break enforcing=0
 +~~~
  
 Puis  Puis 
-<code bash>+~~~bash
 loadkeys fr loadkeys fr
 chroot /sysroot chroot /sysroot
-</code>+~~~
  
  
Ligne 45: Ligne 52:
  
  
-== Sur RedHat+## Sur RedHat
  
 **rd.break** \\ **rd.break** \\
 ? **enforcing=0** ? **enforcing=0**
  
-<code bash>+~~~bash
  
 mount -o remount,rw /sysroot mount -o remount,rw /sysroot
Ligne 62: Ligne 69:
 #puis  #puis 
 restorecon -Rv /etc   restorecon -Rv /etc  
-</code>+~~~
  
-=== Alternative à touch /.autorelabel+### Alternative à touch /.autorelabel
  
  
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 "ro" to "rw" above, make sure to remount the /sysroot partition as shown below. NOTE: If you did not change "ro" to "rw" above, make sure to remount the /sysroot partition as shown below.
-<code bash>+~~~bash
 mount –o remount,rw /sysroot mount –o remount,rw /sysroot
 chroot /sysroot chroot /sysroot
 passwd root passwd root
-</code>+~~~
  
 * 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.
-<code bash>+~~~bash
 restorecon -v /etc/shadow restorecon -v /etc/shadow
 setenforce 1 ; getenforce setenforce 1 ; getenforce
-</code>+~~~
  
  
  
tech/systemd_mode_recovery_single_mode_linux_kernel_param.1742825205.txt.gz · Dernière modification : de 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki