# mankeletor/corbex-os architecture

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

- Interactive diagram: https://gitdiagram.com/mankeletor/corbex-os
- Repository: https://github.com/mankeletor/corbex-os

## Overview

CorbexOS is a Devuan Excalibur ISO builder for school netbooks. A local operator configures and runs the master script; it checks prerequisites, extracts a base ISO, injects unattended installation settings into the initrd, assembles an offline repository, and rebuilds the installable ISO. The README also describes a target-side post-install step and the resulting OpenRC/MATE system with educational and productivity software, regional settings, and hardware support. The README documents the build stages and broad capabilities; source excerpts were unavailable, so unverified implementation links are omitted.

Main entry points: [`main.sh`](https://github.com/mankeletor/corbex-os/blob/main/main.sh) (Build orchestrator), [`modules/03_build_initrd.sh`](https://github.com/mankeletor/corbex-os/blob/main/modules/03_build_initrd.sh) (Initrd preparation), [`modules/04_repo_local.sh`](https://github.com/mankeletor/corbex-os/blob/main/modules/04_repo_local.sh) (Offline repository), [`modules/05_build_iso.sh`](https://github.com/mankeletor/corbex-os/blob/main/modules/05_build_iso.sh) (ISO assembly)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_build["ISO build"]
  node_main["Build orchestrator<br/>[main.sh]"]
  node_settings["Build settings<br/>[config.env]"]
  node_deps["Dependency checks<br/>[01_check_deps.sh]"]
  node_extract["Base ISO extraction<br/>[02_extract_iso.sh]"]
  node_initrd["Initrd preparation<br/>[03_build_initrd.sh]"]
  node_sources["Source generation"]
  node_sourcebuild["Source build"]
  node_offline["Offline repository<br/>[04_repo_local.sh]"]
  node_iso["ISO assembly<br/>[05_build_iso.sh]"]
  node_artifact["Installable ISO"]
end

subgraph group_install["Installation setup"]
  node_preseed["Unattended installer<br/>[preseed.cfg]"]
  node_postinst["Target post-install<br/>[postinst.sh]"]
  node_finalpost["Final configuration<br/>[postinst_final.sh]"]
end

subgraph group_payload["System payload"]
  node_packages["Software packages<br/>[pkgs_install.txt]"]
  node_manual["Manual packages<br/>[pkgs_manual.txt]"]
  node_manualclean["Package cleanup list"]
end

subgraph group_config["System configuration"]
  node_desktop["MATE desktop settings<br/>[corbex.dconf]"]
  node_bootcfg["Boot configuration<br/>[isolinux.cfg]"]
  node_preseedtemplate["Preseed template<br/>[preseed.cfg]"]
  node_rc["OpenRC settings<br/>[rc.conf]"]
  node_uefi["UEFI boot settings<br/>[syslinux_efi.cfg]"]
end

node_operator(("Local builder"))

node_operator -->|"runs"| node_main
node_main -->|"uses settings"| node_settings
node_main -->|"orchestrates"| node_deps
node_main -->|"orchestrates"| node_extract
node_main -->|"orchestrates"| node_initrd
node_main -->|"orchestrates"| node_offline
node_main -->|"orchestrates"| node_iso
node_extract -->|"precedes"| node_initrd
node_initrd -->|"precedes"| node_offline
node_offline -->|"precedes"| node_iso
node_initrd -->|"injects"| node_preseed
node_iso -->|"produces"| node_artifact
node_artifact -.->|"installs with"| node_postinst
node_postinst -.->|"uses"| node_finalpost

click node_main "https://github.com/mankeletor/corbex-os/blob/main/main.sh"
click node_settings "https://github.com/mankeletor/corbex-os/blob/main/config.env"
click node_deps "https://github.com/mankeletor/corbex-os/blob/main/modules/01_check_deps.sh"
click node_extract "https://github.com/mankeletor/corbex-os/blob/main/modules/02_extract_iso.sh"
click node_initrd "https://github.com/mankeletor/corbex-os/blob/main/modules/03_build_initrd.sh"
click node_sources "https://github.com/mankeletor/corbex-os/blob/main/modules/03_generate_sources.sh"
click node_sourcebuild "https://github.com/mankeletor/corbex-os/blob/main/modules/3.5_build_source.sh"
click node_offline "https://github.com/mankeletor/corbex-os/blob/main/modules/04_repo_local.sh"
click node_iso "https://github.com/mankeletor/corbex-os/blob/main/modules/05_build_iso.sh"
click node_preseed "https://github.com/mankeletor/corbex-os/blob/main/preseed.cfg"
click node_postinst "https://github.com/mankeletor/corbex-os/blob/main/postinst.sh"
click node_finalpost "https://github.com/mankeletor/corbex-os/blob/main/scripts_aux/postinst_final.sh"
click node_packages "https://github.com/mankeletor/corbex-os/blob/main/pkgs_install.txt"
click node_manual "https://github.com/mankeletor/corbex-os/blob/main/pkgs_manual.txt"
click node_manualclean "https://github.com/mankeletor/corbex-os/blob/main/pkgs_manual_clean.txt"
click node_desktop "https://github.com/mankeletor/corbex-os/blob/main/templates/corbex.dconf"
click node_bootcfg "https://github.com/mankeletor/corbex-os/blob/main/templates/isolinux.cfg"
click node_preseedtemplate "https://github.com/mankeletor/corbex-os/blob/main/templates/preseed.cfg"
click node_rc "https://github.com/mankeletor/corbex-os/blob/main/templates/rc.conf"
click node_uefi "https://github.com/mankeletor/corbex-os/blob/main/templates/syslinux_efi.cfg"

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_main,node_settings,node_deps,node_extract,node_initrd,node_sources,node_sourcebuild,node_offline,node_iso,node_artifact toneBlue
class node_preseed,node_postinst,node_finalpost toneAmber
class node_packages,node_manual,node_manualclean toneMint
class node_desktop,node_bootcfg,node_preseedtemplate,node_rc,node_uefi toneRose
class node_operator toneIndigo
```

## Components

### ISO build

- [Build orchestrator](https://github.com/mankeletor/corbex-os/blob/main/main.sh): `main.sh`
- [Build settings](https://github.com/mankeletor/corbex-os/blob/main/config.env): `config.env`
- [Dependency checks](https://github.com/mankeletor/corbex-os/blob/main/modules/01_check_deps.sh): `modules/01_check_deps.sh`
- [Base ISO extraction](https://github.com/mankeletor/corbex-os/blob/main/modules/02_extract_iso.sh): `modules/02_extract_iso.sh`
- [Initrd preparation](https://github.com/mankeletor/corbex-os/blob/main/modules/03_build_initrd.sh): `modules/03_build_initrd.sh`
- [Source generation](https://github.com/mankeletor/corbex-os/blob/main/modules/03_generate_sources.sh): `modules/03_generate_sources.sh`
- [Source build](https://github.com/mankeletor/corbex-os/blob/main/modules/3.5_build_source.sh): `modules/3.5_build_source.sh`
- [Offline repository](https://github.com/mankeletor/corbex-os/blob/main/modules/04_repo_local.sh): `modules/04_repo_local.sh`
- [ISO assembly](https://github.com/mankeletor/corbex-os/blob/main/modules/05_build_iso.sh): `modules/05_build_iso.sh`
- **Installable ISO**

### Installation setup

- [Unattended installer](https://github.com/mankeletor/corbex-os/blob/main/preseed.cfg): `preseed.cfg`
- [Target post-install](https://github.com/mankeletor/corbex-os/blob/main/postinst.sh): `postinst.sh`
- [Final configuration](https://github.com/mankeletor/corbex-os/blob/main/scripts_aux/postinst_final.sh): `scripts_aux/postinst_final.sh`

### System payload

- [Software packages](https://github.com/mankeletor/corbex-os/blob/main/pkgs_install.txt): `pkgs_install.txt`
- [Manual packages](https://github.com/mankeletor/corbex-os/blob/main/pkgs_manual.txt): `pkgs_manual.txt`
- [Package cleanup list](https://github.com/mankeletor/corbex-os/blob/main/pkgs_manual_clean.txt): `pkgs_manual_clean.txt`

### System configuration

- [MATE desktop settings](https://github.com/mankeletor/corbex-os/blob/main/templates/corbex.dconf): `templates/corbex.dconf`
- [Boot configuration](https://github.com/mankeletor/corbex-os/blob/main/templates/isolinux.cfg): `templates/isolinux.cfg`
- [Preseed template](https://github.com/mankeletor/corbex-os/blob/main/templates/preseed.cfg): `templates/preseed.cfg`
- [OpenRC settings](https://github.com/mankeletor/corbex-os/blob/main/templates/rc.conf): `templates/rc.conf`
- [UEFI boot settings](https://github.com/mankeletor/corbex-os/blob/main/templates/syslinux_efi.cfg): `templates/syslinux_efi.cfg`

### Other components

- **Local builder**

## Connections

- Local builder → Build orchestrator: runs (evidence: `README.md`)
- Build orchestrator → Build settings: uses settings (evidence: `README.md`)
- Build orchestrator → Dependency checks: orchestrates (evidence: `README.md`)
- Build orchestrator → Base ISO extraction: orchestrates (evidence: `README.md`)
- Build orchestrator → Initrd preparation: orchestrates (evidence: `README.md`)
- Build orchestrator → Offline repository: orchestrates (evidence: `README.md`)
- Build orchestrator → ISO assembly: orchestrates (evidence: `README.md`)
- Base ISO extraction → Initrd preparation: precedes (evidence: `README.md`)
- Initrd preparation → Offline repository: precedes (evidence: `README.md`)
- Offline repository → ISO assembly: precedes (evidence: `README.md`)
- Initrd preparation → Unattended installer: injects (evidence: `README.md`)
- ISO assembly → Installable ISO: produces (evidence: `README.md`)
- Installable ISO → Target post-install: installs with
- Target post-install → Final configuration: uses
