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.
|
|
@ -1,6 +1,6 @@
|
|||
#!/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"
|
||||
|
||||
cd "$workdir"
|
||||
|
@ -11,4 +11,4 @@ podman rm spark-rootfs
|
|||
|
||||
mv ".$filename.part" "$filename"
|
||||
|
||||
./switch "$filename"
|
||||
[[ -f ./switch ]] && ./switch "$filename"
|
Loading…
Reference in New Issue
Block a user