spark-rootfs/build-rootfs

15 lines
299 B
Plaintext
Raw Normal View History

#!/bin/sh
workdir="$HOME/public/rootfs"
filename="spark-x86_64-$(date '+%Y%m%d').tar.xz"
cd "$workdir"
podman create --name spark-rootfs localhost/spark:latest bash
podman export spark-rootfs | xz > ".$filename.part"
podman rm spark-rootfs
mv ".$filename.part" "$filename"
./switch "$filename"