spark-rootfs/build-rootfs
fbt c3fbf5bdd1 zstd
Signed-off-by: fbt <fbt@fleshless.org>
2023-10-26 02:11:44 +00:00

15 lines
302 B
Bash
Executable File

#!/bin/sh
workdir="$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"
./switch "$filename"