feat(x86/arm64): Add IPv4 printing on login screen

This commit is contained in:
Tanguy Herbron 2023-02-03 23:31:27 +01:00
parent f433fe6ba7
commit c414e9c75f
2 changed files with 2 additions and 0 deletions

View File

@ -27,6 +27,7 @@ chmod 600 /home/creator/.ssh/authorized_keys
sed -i -E 's/#?PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/sshd_config sed -i -E 's/#?PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/sshd_config
systemctl enable ssh systemctl enable ssh
echo "kenoma" > /etc/hostname echo "kenoma" > /etc/hostname
echo "IP: \4" >> /etc/issue
EOT EOT
echo "Unmounting second partition" echo "Unmounting second partition"

View File

@ -471,4 +471,5 @@ d-i preseed/late_command string apt-install zsh; \
in-target sudo -u creator sh -c 'echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDYsz4jdyzf9UcJ8eEavVmi+DNYE3ioeJBfTlVMw7Vsb tanguy@Diogenes" > /home/creator/.ssh/authorized_keys'; \ in-target sudo -u creator sh -c 'echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDYsz4jdyzf9UcJ8eEavVmi+DNYE3ioeJBfTlVMw7Vsb tanguy@Diogenes" > /home/creator/.ssh/authorized_keys'; \
in-target chmod 600 /home/creator/.ssh/authorized_keys; \ in-target chmod 600 /home/creator/.ssh/authorized_keys; \
in-target sed -i -E 's/#?PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/sshd_config; in-target sed -i -E 's/#?PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/sshd_config;
in-target echo "IP: \4" >> /etc/issue