4 231
modifications
Ligne 54 : | Ligne 54 : | ||
Pour debian jessie avec systemd, afin d'activer l'autologin, il faut créer un script personnalisé dans <code>config/hooks/autologin.chroot</code> : | Pour debian jessie avec systemd, afin d'activer l'autologin, il faut créer un script personnalisé dans <code>config/hooks/autologin.chroot</code> : | ||
<pre> | <pre> | ||
cat > config/hooks/motd.chroot << EOF | |||
#!/bin/sh | #!/bin/sh | ||
set -e | set -e | ||
Ligne 60 : | Ligne 61 : | ||
echo "ExecStart=" >> /etc/systemd/system/getty@tty1.service.d/autologin.conf | echo "ExecStart=" >> /etc/systemd/system/getty@tty1.service.d/autologin.conf | ||
echo "ExecStart=-/sbin/agetty --autologin "root" %I" >> /etc/systemd/system/getty@tty1.service.d/autologin.conf | echo "ExecStart=-/sbin/agetty --autologin "root" %I" >> /etc/systemd/system/getty@tty1.service.d/autologin.conf | ||
EOF | |||
</pre> | </pre> | ||
Un peu de tunning : <code>config/hooks/motd.chroot</code> :<pre> | Un peu de tunning : <code>config/hooks/motd.chroot</code> : | ||
<pre> | |||
cat > config/hooks/motd.chroot << EOF | |||
#!/bin/sh | #!/bin/sh | ||
set -e | set -e | ||
Ligne 69 : | Ligne 73 : | ||
echo "You can get root by using sudo su" >> /etc/issue | echo "You can get root by using sudo su" >> /etc/issue | ||
echo "" >> /etc/issue | echo "" >> /etc/issue | ||
EOF | |||
</pre> | </pre> | ||