Yes, you would use on_chroot for that.brunp wrote: ↑Thu Jan 17, 2019 6:03 pmon that note, if I was intending on making a Raspbian Lite build and generate custom stage3 which consisted of simply installing a package (via PyPI) which has a UI, would I do that within the on_chroot syntax? So, it would be contained within my image? Or, do I make some changes to have it run on first launch?
Code: Select all
#!/bin/bash -e on_chroot << EOF pip install --upgrade pip pip install spidev pip3 install --upgrade pip pip3 install spidev EOF