diff --git a/FAQ.dev.md b/FAQ.dev.md index 4eb0a64e2..9e2cabce9 100644 --- a/FAQ.dev.md +++ b/FAQ.dev.md @@ -9,12 +9,15 @@ * Make sure the packer script is in root of the 128GB-USBDrive * If it is not there download: * `curl -O -L https://raw.githubusercontent.com/raspiblitz/raspiblitz/dev/ci/packer.sh` -* Security read/check script and then start build with (replace parameters): -* `sudo bash ./packer.sh [BRANCH] [arm|x86] [min|fat] [?LASTCOMMITHASH]` +* Security read/check script and compare checksum: + * `shasum -a 256 ./ci/packer.sh` or + * `shasum -a 256 packer.sh` +* Start build with: +* `sudo bash ./packer.sh` and enter: * `BRANCH` = the branch name on this repo of which the image should be build * `[arm|x86]` = The architecture the image is targeting (RaspberryPi = `arm`) * `[min|fat]` = lean or fatpack (fatpack prepackages lots of apps already with the image) - * `LASTCOMMITHASH` (optional) = security check & copy the latest commit hash of the branch you want to build + * `LASTCOMMITHASH` (optional) = security check & copy the latest commit hash of the branch you want to build (substring is ok) ### What is the process of creating a new RaspberryPi SD card image release manually? diff --git a/ci/packer.sh b/ci/packer.sh index 485310cca..34c49a885 100644 --- a/ci/packer.sh +++ b/ci/packer.sh @@ -31,7 +31,7 @@ if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "-help" ]; then # by input read -p "Press ENTER to continue or CTRL+C to exit" - read -p "Enter the branch to build (default: dev): " BRANCH + read -p "Enter the branch to build: " BRANCH read -p "Enter the architecture to build (arm|x86): " ARCH read -p "Enter the type to build (min|fat): " TYPE read -p "Enter the last commit hash to check (optional): " COMMITHASH