Merge branch 'master' of ssh://code.fleshless.org:2290/Spark/spark-rootfs
This commit is contained in:
commit
0d1c6e4dd5
17
README.md
Normal file
17
README.md
Normal 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.
|
28
build-rootfs
28
build-rootfs
|
@ -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"
|
Loading…
Reference in New Issue
Block a user