Sign inSign up

saltyvagrant/pipatch

By saltyvagrant

Updated about 6 years ago

Patch a Raspberry Pi image to start SSH on first boot

Image
0

996

saltyvagrant/pipatch repository overview

Intended primarily for use in CI chain, this container takes an input Raspbian type image (containing two partitions with names ending '1', boot partition, and '2', main linux file system) and patches the boot partition with the ssh file to prompt first-boot setup of the SSH server and the linux partition with ssh keys generated for lightweight dropbear ssh client (dbclient).

The intention is that CI systems can then use dropbear ssh and scp on unprivileged containers to build out a base Raspberry Pi image.

Run

docker run --rm --privileged -v "$(pwd}/sdcard":/sdcard -v "$(pwd)/sshkey":/sshkey saltvagrant/pipatch

This assumes you have your image to be patched in ./sdcard/filesystem.img and you want your private ssh keys written to ./sshkey

Tag summary

Content type

Image

Digest

Size

26 MB

Last updated

about 6 years ago

docker pull saltyvagrant/pipatch