docs: fix paths from local to system install
This commit is contained in:
parent
93ba233a12
commit
dea655ce95
2 changed files with 10 additions and 4 deletions
|
|
@ -11,7 +11,9 @@
|
||||||
|
|
||||||
- **`Pull`** wraps `go-containerregistry`'s `remote.Image` with the
|
- **`Pull`** wraps `go-containerregistry`'s `remote.Image` with the
|
||||||
`linux/amd64` platform pinned. Layer blobs cache under
|
`linux/amd64` platform pinned. Layer blobs cache under
|
||||||
`~/.cache/banger/oci/blobs/` and populate lazily during flatten.
|
`/var/cache/banger/oci/blobs/` (system install) or
|
||||||
|
`~/.cache/banger/oci/blobs/` (dev mode) and populate lazily during
|
||||||
|
flatten.
|
||||||
- **`Flatten`** replays layers oldest-first into a staging directory,
|
- **`Flatten`** replays layers oldest-first into a staging directory,
|
||||||
applies whiteouts, rejects unsafe paths plus filenames that banger's
|
applies whiteouts, rejects unsafe paths plus filenames that banger's
|
||||||
debugfs ownership fixup cannot encode safely. Returns a `Metadata`
|
debugfs ownership fixup cannot encode safely. Returns a `Metadata`
|
||||||
|
|
|
||||||
|
|
@ -90,12 +90,16 @@ Unknown distros fall back to `ID_LIKE`, then error cleanly.
|
||||||
|
|
||||||
## Paths
|
## Paths
|
||||||
|
|
||||||
|
Paths below assume the system install (`banger system install`). When
|
||||||
|
running `bangerd` directly without the helper, the same files live
|
||||||
|
under `~/.cache/banger/` and `~/.local/state/banger/` instead.
|
||||||
|
|
||||||
| What | Where |
|
| What | Where |
|
||||||
|------|-------|
|
|------|-------|
|
||||||
| Layer blob cache | `~/.cache/banger/oci/blobs/sha256/<hex>` |
|
| Layer blob cache | `/var/cache/banger/oci/blobs/sha256/<hex>` |
|
||||||
| Staging dir | `~/.local/state/banger/images/<id>.staging/` |
|
| Staging dir | `/var/lib/banger/images/<id>.staging/` |
|
||||||
| Extraction scratch | `$TMPDIR/banger-pull-<rand>/` |
|
| Extraction scratch | `$TMPDIR/banger-pull-<rand>/` |
|
||||||
| Published image | `~/.local/state/banger/images/<id>/rootfs.ext4` |
|
| Published image | `/var/lib/banger/images/<id>/rootfs.ext4` |
|
||||||
|
|
||||||
## Cache lifecycle
|
## Cache lifecycle
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue