RPi-Distro / raspberrypi-sys-mods

A collection of Raspberry Pi-sourced system configuration files and associated scripts
99 stars 36 forks source link

Add boot.mount as order dependency for sshswitch #67

Closed hungryhorace closed 1 year ago

hungryhorace commented 1 year ago

Hello, I've been netbooting and having trouble getting the SSH server enabled with a ssh file. It seems that mounting the boot filesystem into /boot over NFS takes long enough that sshswitch runs before /boot is mounted and therefore sees the empty /boot directory when it looks for the ssh file. systemd-analysis-sshswitch-vs-boot Check the diagram above, where boot.mount begins sometime after sshswitch.

I successfully worked around the problem by putting an ssh file in both the boot filesystem and also in /boot in the root filesystem, but I think this PR is the proper fix. systemd-analysis-correct-order

XECDesign commented 1 year ago

Thank you