Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
Jack L. Frost 2023-10-26 02:11:44 +00:00
parent 2c38d8ec86
commit c3fbf5bdd1

View File

@ -1,12 +1,12 @@
#!/bin/sh
workdir="$HOME/public/rootfs"
filename="spark-x86_64-$(date '+%Y%m%d').tar.xz"
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 | xz > ".$filename.part"
podman export spark-rootfs | zstd > ".$filename.part"
podman rm spark-rootfs
mv ".$filename.part" "$filename"