RPi-Distro / pi-gen

Tool used to create the official Raspberry Pi OS images
BSD 3-Clause "New" or "Revised" License
2.65k stars 1.65k forks source link

How to version control pi-gen customizations? #800

Open cmorganBE opened 1 month ago

cmorganBE commented 1 month ago

It looks like build.sh has to run from the pi-gen directory. How does one version control their changes to pi-gen, the config file etc?

Is the approach to add pi-gen to a git repo as a submodule, then run a script to copy files from the git repo into the pi-gen subdirectory, then cd pi-gen and ./build-docker.sh?

An alternative idea would be to fork pi-gen and commit changes there but that seemed slightly less clean than the copying approach.

Is there a third better option?

jayofelony commented 4 days ago

I added both 32/64 bit pi-gen as a submodule to one of my repo's. Works great.