# mstrpi/nspawn architecture

> Architecture diagram of the GitHub repository mstrpi/nspawn, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mstrpi/nspawn
- Repository: https://github.com/mstrpi/nspawn

## Overview

This repository is a small collection of shell scripts intended to make systemd-nspawn setup and installation easier. The README identifies that goal and mentions systemd-container, but no source excerpts are available to establish which scripts install packages, configure containers, or call one another. The graph therefore shows only the documented user-to-installation entry point; the other listed scripts are included as repository components without inferred relationships. The explicitly “not_ready” scripts are omitted as unfinished peripheral work.

Main entry points: [`nspawninstall.sh`](https://github.com/mstrpi/nspawn/blob/main/nspawninstall.sh) (nspawn installer)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("User"))
node_installer["nspawn installer<br/>[nspawninstall.sh]"]
node_apptainer["Apptainer script"]
node_narch["Arch script"]
node_ndebian["Debian script"]
node_nfedora["Fedora script"]
node_sedisable["Disable script"]
node_systainerbr["Container script"]
node_systainermv["Container move script"]

node_user -->|"uses for setup"| node_installer

click node_installer "https://github.com/mstrpi/nspawn/blob/main/nspawninstall.sh"
click node_apptainer "https://github.com/mstrpi/nspawn/blob/main/bin/apptainer"
click node_narch "https://github.com/mstrpi/nspawn/blob/main/bin/narch"
click node_ndebian "https://github.com/mstrpi/nspawn/blob/main/bin/ndebian"
click node_nfedora "https://github.com/mstrpi/nspawn/blob/main/bin/nfedora"
click node_sedisable "https://github.com/mstrpi/nspawn/blob/main/bin/sedisable"
click node_systainerbr "https://github.com/mstrpi/nspawn/blob/main/bin/systainerbr"
click node_systainermv "https://github.com/mstrpi/nspawn/blob/main/bin/systainermv"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_user toneBlue
class node_installer,node_apptainer,node_narch,node_ndebian,node_nfedora,node_sedisable,node_systainerbr,node_systainermv toneTeal
```

## Components

### Other components

- **User**
- [nspawn installer](https://github.com/mstrpi/nspawn/blob/main/nspawninstall.sh): `nspawninstall.sh`
- [Apptainer script](https://github.com/mstrpi/nspawn/blob/main/bin/apptainer): `bin/apptainer`
- [Arch script](https://github.com/mstrpi/nspawn/blob/main/bin/narch): `bin/narch`
- [Debian script](https://github.com/mstrpi/nspawn/blob/main/bin/ndebian): `bin/ndebian`
- [Fedora script](https://github.com/mstrpi/nspawn/blob/main/bin/nfedora): `bin/nfedora`
- [Disable script](https://github.com/mstrpi/nspawn/blob/main/bin/sedisable): `bin/sedisable`
- [Container script](https://github.com/mstrpi/nspawn/blob/main/bin/systainerbr): `bin/systainerbr`
- [Container move script](https://github.com/mstrpi/nspawn/blob/main/bin/systainermv): `bin/systainermv`

## Connections

- User → nspawn installer: uses for setup (evidence: `README.md`)
