RaspberryPi Images

The Raspberry Pi image builder used is fork of official Beagle image builder. To install this image builder, clone repo https://github.com/salt-formulas/rpi23-gen-image to the location specified in repository configuration.

repository:
  bbb-repo:
    engine: rpi23
    builder_dir: /path/to/rpi23-gen-image
    image_dir: /storage/dir
    manager: salt-manager
    inventory: reclass-inventory

Build Script

The rpi23-gen-image uses modified generator script.

#!/bin/sh

# Usage:
#
# ./gen-image.sh node.domain.com-20180405

set -e
set -x

IMAGENAME="${1:-rpi.domain.com-timestamp}"

rm -rf "./images/jessie/"
rm -rf "./images/stretch/"
rm -rf "./images/buster/"

CONFIG_TEMPLATE="${IMAGENAME}" ./rpi23-gen-image.sh

rm -rf "./images/jessie/"
rm -rf "./images/stretch/"
rm -rf "./images/buster/"