Merge branch 'master' of ssh://code.fleshless.org:2290/Spark/spark-rootfs

This commit is contained in:
Jack L. Frost 2024-01-29 16:53:05 +00:00
commit 0d1c6e4dd5
2 changed files with 31 additions and 14 deletions

17
README.md Normal file
View File

@ -0,0 +1,17 @@
# Spark rootfs
If you're here for the tarball, it's [here](https://spark.fleshless.org/rootfs/latest.tar.zst)
If you wanna build this, you'll have to make a fullbase arch image first:
```
# As root!
mkdir arch
pacstrap arch base
tar -C arch -c . > /tmp/arch.tar
# As your podman/docker rootless user, if you have one
podman import - archlinux:fullbase < /tmp/arch.tar
```
Now you can run `build` to make the image, then `DESTDIR=. build-rootfs` to dump it into a tarball.

View File

@ -1,14 +1,14 @@
#!/bin/sh #!/usr/bin/env bash
workdir="$HOME/public/rootfs" workdir="${DESTDIR:-$HOME/public/rootfs}"
filename="spark-x86_64-$(date '+%Y%m%d').tar.zst" filename="spark-x86_64-$(date '+%Y%m%d').tar.zst"
cd "$workdir" cd "$workdir"
podman create --name spark-rootfs localhost/spark:latest bash podman create --name spark-rootfs localhost/spark:latest bash
podman export spark-rootfs | zstd > ".$filename.part" podman export spark-rootfs | zstd > ".$filename.part"
podman rm spark-rootfs podman rm spark-rootfs
mv ".$filename.part" "$filename" mv ".$filename.part" "$filename"
./switch "$filename" [[ -f ./switch ]] && ./switch "$filename"