From 911c756083164c32051d533ca3f2de488f202130 Mon Sep 17 00:00:00 2001 From: Alessandro Lannocca Date: Sun, 12 May 2024 12:56:27 +0200 Subject: [PATCH] move sshd activation from ssh.service to ssh.socket: - more realiable, avoids possible race condition on first boot - supplementary to PR#6586 - and commits ffee50a8a6b99bb4f35af90895e019eced7ff71b and 67250321918e59582b8f1003d331f4b1db253b21 --- lib/functions/rootfs/distro-agnostic.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/functions/rootfs/distro-agnostic.sh b/lib/functions/rootfs/distro-agnostic.sh index d9a54f5d93..0a134606a7 100644 --- a/lib/functions/rootfs/distro-agnostic.sh +++ b/lib/functions/rootfs/distro-agnostic.sh @@ -413,6 +413,10 @@ function install_distribution_agnostic() { # @TODO: rpardini: still needed? people might want working Samba disable_systemd_service_sdcard nmbd + # move sshd activation from ssh.service to ssh.socket (more realiable, avoids possible race condition on first boot) supplementary to ffee50a8a6b99bb4f35af90895e019eced7ff71b and 67250321918e59582b8f1003d331f4b1db253b21 + disable_systemd_service_sdcard ssh + chroot_sdcard systemctl enable ssh.socket + # disable low-level kernel messages for non betas if [[ -z $BETA ]]; then sed -i "s/^#kernel.printk*/kernel.printk/" "${SDCARD}"/etc/sysctl.conf