14
build-rootfs
Executable file
14
build-rootfs
Executable 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"
|
Reference in New Issue
Block a user