spark-rootfs/build-rootfs

14 lines
357 B
Bash
Executable File

#!/usr/bin/env bash
workdir="${DESTDIR:-$HOME/public/rootfs}"
filename="spark-x86_64-$(date '+%Y%m%d').tar.zst"
cd "$workdir"
podman create --name spark-rootfs localhost/spark:latest bash
podman export spark-rootfs | zstd > ".$filename.part"
podman rm spark-rootfs
mv ".$filename.part" "$filename"
[[ -f ./switch ]] && ./switch "$filename"