2021-03-05 06:01:31 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
workdir="$HOME/public/rootfs"
|
2023-10-26 02:11:44 +00:00
|
|
|
filename="spark-x86_64-$(date '+%Y%m%d').tar.zst"
|
2021-03-05 06:01:31 +00:00
|
|
|
|
|
|
|
cd "$workdir"
|
|
|
|
|
|
|
|
podman create --name spark-rootfs localhost/spark:latest bash
|
2023-10-26 02:11:44 +00:00
|
|
|
podman export spark-rootfs | zstd > ".$filename.part"
|
2021-03-05 06:01:31 +00:00
|
|
|
podman rm spark-rootfs
|
|
|
|
|
|
|
|
mv ".$filename.part" "$filename"
|
|
|
|
|
|
|
|
./switch "$filename"
|