Différences

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

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
Prochaine révisionLes deux révisions suivantes
slackware:initrd_ssh [2017/03/05 17:32] – a Thomasslackware:initrd_ssh [2017/03/07 07:50] Thomas
Ligne 19: Ligne 19:
   - Créer une bannière (optionnelle). Vous pouvez y saisir les commandes dont vous aurez besoin pour déchiffrer votre partition et poursuivre le démarrage de l'OS : <code>vi /boot/initrd-tree/etc/dropbear/banner</code>   - Créer une bannière (optionnelle). Vous pouvez y saisir les commandes dont vous aurez besoin pour déchiffrer votre partition et poursuivre le démarrage de l'OS : <code>vi /boot/initrd-tree/etc/dropbear/banner</code>
   - L'utilisateur root doit avoir le shell /bin/sh et non bash car il n'est pas présent. Modifier le fichier /boot/initrd-tree/etc/passwd comme ceci : <code>root:x:0:0::/root:/bin/sh</code>   - L'utilisateur root doit avoir le shell /bin/sh et non bash car il n'est pas présent. Modifier le fichier /boot/initrd-tree/etc/passwd comme ceci : <code>root:x:0:0::/root:/bin/sh</code>
-  - Copier votre fichier /etc/shadow (uniquement la ligne root) car il contient le mot de passe à saisir : <code>head -n 1 /etc/shadow > /boot/initrd-tree/etc/shadow</code>+  - Copier votre fichier /etc/shadow (uniquement la ligne root) car il contient le mot de passe à saisir : <code>grep ^root /etc/shadow > /boot/initrd-tree/etc/shadow</code>
   - Créer le fichier /boot/initrd-tree/bin/bootlock :<code>   - Créer le fichier /boot/initrd-tree/bin/bootlock :<code>
 echo "###########################################" echo "###########################################"
 echo "###        Wait for user input          ###" echo "###        Wait for user input          ###"
 echo "###########################################" echo "###########################################"
-echo "Type ok and press enter to continue booting:" +echo "Press enter to continue booting:" 
-INPUT='wait' +read INPUT</code>
-while [ $INPUT != 'ok' ] ; do +
-  read INPUT +
-done</code>+
   - Créer le fichier /boot/initrd-tree/udev.sh :<code>   - Créer le fichier /boot/initrd-tree/udev.sh :<code>
 # initialize network interfaces for ssh boot # initialize network interfaces for ssh boot
Ligne 84: Ligne 81:
 echo "###############################################" echo "###############################################"
 killall dropbear killall dropbear
 +sleep 1
  
 # Now shut down the network so it doesn't interfere with the normal booting process # Now shut down the network so it doesn't interfere with the normal booting process
slackware/initrd_ssh.txt · Dernière modification : 2017/03/23 07:51 de Thomas
CC Attribution 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0