RPi-Distro / pi-gen

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

RELEASE environment variable vs. git tag/branch #645

Closed benfrancis closed 1 year ago

benfrancis commented 1 year ago

Hi,

If I want to build Raspberry Pi OS Buster, what is the difference between specifying a release in the RELEASE environment variable vs. checking out the latest buster tag from git? E.g. https://github.com/RPi-Distro/pi-gen/tree/2022-09-22-raspios-buster

Is it better to build from the master branch and specify RELEASE=buster, or clone the 2022-09-22-raspios-buster tag (or the buster branch) and accept the default?

Thanks

XECDesign commented 1 year ago

Since different releases will have different packages available, and we install some packages which are not available in buster, you'll have better luck building from those tags or the buster branch.

This is a recurring issue, so I'll update the readme and add an appropriate error to pi-gen itself.