The build process is divided into stages (0 through 5). You can skip specific stages to speed up development or build a specific version (like Lite or Desktop).
Skipping Stages
- To skip a stage: Place an empty file named
SKIP in the directory of the stage you want to exclude (e.g., ./stage3/SKIP). - To skip image exports: Place an empty file named
SKIP_IMAGES in the directories containing EXPORT_* files (currently stage2, stage4, and stage5).
Example: Building a Lite System
To build up to Stage 2 (Lite), skip stages 3, 4, and 5, and skip image exports in stages 4 and 5:
echo "IMG_NAME='raspios'" > config
touch ./stage3/SKIP ./stage4/SKIP ./stage5/SKIP
touch ./stage4/SKIP_IMAGES ./stage5/SKIP_IMAGES
sudo ./build.sh # or ./build-docker.sh
# Example for building a lite system
echo "IMG_NAME='raspios'" > config
touch ./stage3/SKIP ./stage4/SKIP ./stage5/SKIP
touch ./stage4/SKIP_IMAGES ./stage5/SKIP_IMAGES
sudo ./build.sh # or ./build-docker.sh