move sshd activation from ssh.service to ssh.socket:

- more realiable, avoids possible race condition on first boot
- supplementary to PR#6586 - and commits ffee50a8a6 and 6725032191
This commit is contained in:
Alessandro Lannocca 2024-05-12 12:56:27 +02:00
parent 6725032191
commit 911c756083

View File

@ -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