From bcfca740a14bc30edf0d6f579505aff56c261334 Mon Sep 17 00:00:00 2001 From: Thomas de Roo Date: Tue, 25 Apr 2023 14:00:53 +0200 Subject: [PATCH] sshd en figlet config --- bookworm/preseed.cfg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bookworm/preseed.cfg b/bookworm/preseed.cfg index e1307c3..7989323 100644 --- a/bookworm/preseed.cfg +++ b/bookworm/preseed.cfg @@ -268,12 +268,12 @@ d-i preseed/late_command string \ in-target chmod 0644 /root/.ssh/authorized_keys d-i preseed/late_command string \ - in-target sed -i '/*PasswordAuthentication*/c\PasswordAuthentication no' /etc/ssh/sshd_config; \ - in-target sed -i '/*PasswordAuthentication*/c\PasswordAuthentication no' /etc/ssh/sshd_config; \ + sed -i '/*PasswordAuthentication*/c\PasswordAuthentication no' /target/etc/ssh/sshd_config; \ + sed -i '/*PasswordAuthentication*/c\PasswordAuthentication no' /target/etc/ssh/sshd_config; \ in-target systemctl enable --now sshd d-i preseed/late_command string \ - in-target cat /etc/hostname | figlet > /etc/motd + in-target cat /etc/hostname | /usr/bin/figlet > /etc/motd d-i grub-installer/only_debian boolean true d-i grub-installer/with_other_os boolean true