Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
2021-03-05 09:01:31 +03:00
commit 08dc072196
7 changed files with 204 additions and 0 deletions

14
build-rootfs Executable file
View File

@@ -0,0 +1,14 @@
#!/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"