15 lines
299 B
Bash
Executable File
15 lines
299 B
Bash
Executable File
#!/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"
|