toes-image-builder/scripts/download-base.sh
2026-05-13 20:23:09 +00:00

16 lines
469 B
Bash
Executable File

#! /bin/bash
set -ex
# downloads the ubuntu base image
if [ -f "cache/ubuntu-24.04.4-preinstalled-server-arm64+raspi.img.xz" ]; then
exit 0
fi
mkdir -p cache
cd cache
curl -LO https://cdimage.ubuntu.com/releases/noble/release/ubuntu-24.04.4-preinstalled-server-arm64+raspi.img.xz
curl -LO https://cdimage.ubuntu.com/releases/noble/release/SHA256SUMS
curl -LO https://cdimage.ubuntu.com/releases/noble/release/SHA256SUMS.gpg
sha256sum -c SHA256SUMS --ignore-missing