spark-rootfs/build-rootfs
fbt 08dc072196 init
Signed-off-by: fbt <fbt@fleshless.org>
2021-03-05 09:01:31 +03:00

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"