RPi-Distro/pi-gen

Tool used to create the official Raspberry Pi OS images

View on GitHub ↗Jump to charts ↓Open shareable report →

RPi-Distro/pi-gen has 3k+ stars and 1.5k+ forks on GitHub, is written in Shell, and was last pushed on Oct 6, 2026. Data as of . Signed-in members get hourly updates — create a free account.

Summary Information

Updated 1 hour ago
Added to GitGenius on September 21st, 2026
Created on April 11th, 2016
Open Issues & Pull Requests: 164 (+0)
GitHub issues: Enabled
Number of forks: 1,886
Total Stargazers: 3,268 (+0)
Total Subscribers: 109 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 20.8 hours
Mean response time: 18.9 days
90th percentile: 40.9 days
Tracked items: 86

How this project is maintained

100% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Three people close 71% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 33
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 577 days
Stale 30+ days: 33
Stale 90+ days: 33

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Most active issues this week

Sign in to see which issues are moving.
Sign in

Detailed Description

pi-gen is a tool for building custom Raspberry Pi OS images.

The tool solves the problem of creating consistent, reproducible Raspberry Pi OS distributions by automating the image build process. It works by sourcing configuration from a bash shell fragment that sets environment variables controlling the build, then executing a build script that constructs the image according to those settings. The tool supports building both 32-bit images based on Raspbian and 64-bit images based on Debian, with separate branches for each architecture. Users configure the build by setting variables like IMG_NAME for the output image name, RELEASE to specify the Debian release version, and optional settings like APT_PROXY for package management during builds.

The tool runs on Debian-based operating systems released after 2017, though Docker builds are available for other Linux distributions. It requires careful setup: the repository must be cloned to a path without spaces, as debootstrap does not support such paths. The tool is most suitable for developers and maintainers who need to produce custom Raspberry Pi OS variants or who want to build official images. Those building 32-bit images should use the master branch, while 64-bit builds require the arm64 branch. The configuration system allows flexibility through environment variables, including support for temporary apt repositories during builds and apt proxies for development workflows.

The project maintains active development with regular updates to support current Debian releases. The codebase is written primarily in shell script, reflecting its role as a build automation tool. Documentation in the README covers dependencies, configuration options, and build procedures, though it notes that changing the BASE_DIR variable from its default will likely break the build script.