agherzan / meta-raspberrypi

Yocto/OE BSP layer for the Raspberry Pi boards
https://www.yoctoproject.org/
MIT License
540 stars 414 forks source link

rpi-ssh: Add configuration option to enable ssh on first boot #990

Closed ajpenner closed 2 years ago

ajpenner commented 2 years ago

Signed-off-by: Andrew Penner andrew.penner@protonmail.com

- What I did I added a new configuration option ENABLE_SSH to create the empty ssh file in /boot so the system will be able to enable ssh on first boot.

- How I did it I created a new recipe in recipese-bsp/bootfiles that reads conf/local.conf for ENABLE_SSH. If ENABLE_SSH is set to "1" we touch the file /boot/ssh which is added to the final image.