Update build-rootfs
This commit is contained in:
parent
c3fbf5bdd1
commit
3d73c0b964
28
build-rootfs
28
build-rootfs
|
@ -1,14 +1,14 @@
|
|||
#!/bin/sh
|
||||
|
||||
workdir="$HOME/public/rootfs"
|
||||
filename="spark-x86_64-$(date '+%Y%m%d').tar.zst"
|
||||
|
||||
cd "$workdir"
|
||||
|
||||
podman create --name spark-rootfs localhost/spark:latest bash
|
||||
podman export spark-rootfs | zstd > ".$filename.part"
|
||||
podman rm spark-rootfs
|
||||
|
||||
mv ".$filename.part" "$filename"
|
||||
|
||||
./switch "$filename"
|
||||
#!/usr/bin/env bash
|
||||
|
||||
workdir="${DESTDIR:-$HOME/public/rootfs}"
|
||||
filename="spark-x86_64-$(date '+%Y%m%d').tar.zst"
|
||||
|
||||
cd "$workdir"
|
||||
|
||||
podman create --name spark-rootfs localhost/spark:latest bash
|
||||
podman export spark-rootfs | zstd > ".$filename.part"
|
||||
podman rm spark-rootfs
|
||||
|
||||
mv ".$filename.part" "$filename"
|
||||
|
||||
[[ -f ./switch ]] && ./switch "$filename"
|
Loading…
Reference in New Issue
Block a user