kenfallon / fix-ssh-on-pi

Safely enabling ssh in the default Raspberry Pi OS (previously called Raspbian) Image
MIT License
80 stars 36 forks source link

is there a good way to install packages onto the image? #6

Closed c650 closed 3 years ago

c650 commented 3 years ago

hey there again,

I am wondering if there is a good way to install packages onto the image so that they are reading to go when the Pi boots up. In the past I have tried chrooting, but apt is funky in chroot. I have also tried downloading the debs, but that also seems like a lot.

Have you come across any better way to do this?

kenfallon commented 3 years ago

This script was part of the miniseries "Manage your Raspberry Pi fleet with Ansible" which was covered on opensource.com and on Hacker Public Radio.

The goal is to produce a common base Raspberry Pi OS image that doesn't change often but, once it's installed, can automatically be customized, maintained, and managed remotely.

So what you're suggesting is not what I would recommend.