#!/bin/bash # SAIR can decompress the installer image itself, but it's faster to work with uncompressed images when developing. slk_rpiofficialimg=/mnt/prisroot/devel/armedslack-distrib/slackwarearm/platform/aarch64/bootware/installer-aio/slackwareaarch64-current/bcm2711_rpi4.img.xz uncomp_slkimg=/tmp/bcm2711_rpi4.img [ ! -f ${uncomp_slkimg} ] && { echo "Uncompressing RPi AiO image..." xzcat ${slk_rpiofficialimg} > ${uncomp_slkimg} ;} # We'll use this variable within the rpi4 sair plugin to copy our development # versions of the assets export SAIRDATA=$PWD/rpidev ./sair \ -s ${uncomp_slkimg} \ -d /tmp/rpi.img \ -mrpi4 \ --debug