[Unit]
Description=CM4 build cloud-init image (download Raspios, inject NoCloud)
After=network-online.target
Wants=network-online.target

[Service]
Type=oneshot
Environment=CM4_PROVISIONING_DIR=/var/lib/cm4-provisioning
ExecStart=/opt/cm4-provisioning/build-cloudinit-image.sh
# Run as root; script uses losetup, mount
User=root
StandardOutput=journal
StandardError=journal
TimeoutStartSec=7200
