# elementary/os architecture

> Architecture diagram of the GitHub repository elementary/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/elementary/os
- Repository: https://github.com/elementary/os

## Overview

This repository defines elementary OS images and their installed-system configuration, rather than a general-purpose application. The documented user workflow is to build an image, boot the live ISO, and install; installed systems can be upgraded with `updatectl update`. The tree also shows daily/proposed/stable profiles, driver and extension images, and system-update transfer definitions. No source excerpts were provided, so connections beyond the README’s explicit workflow are omitted or marked unverified.

Main entry points: [`mkosi.images/sysupdate`](https://github.com/elementary/os/tree/main/mkosi.images/sysupdate) (Update image), [`mkosi.images/base`](https://github.com/elementary/os/tree/main/mkosi.images/base) (Base system image), [`mkosi.images/liveiso`](https://github.com/elementary/os/tree/main/mkosi.images/liveiso) (Live ISO), [`mkosi.images/liveiso/mkosi.extra/usr/sbin/elementary-install`](https://github.com/elementary/os/blob/main/mkosi.images/liveiso/mkosi.extra/usr/sbin/elementary-install) (System installer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_image["OS Images"]
  node_base["Base system image<br/>[base]"]
  node_profiles["Release profiles<br/>[mkosi.profiles]"]
end

subgraph group_live["Live Installation"]
  node_liveiso["Live ISO<br/>[liveiso]"]
  node_installer["System installer<br/>[elementary-install]"]
  node_classic["Classic installation<br/>[mkosi.conf]"]
end

subgraph group_updates["System Updates"]
  node_sysupdate["Update image<br/>[sysupdate]"]
  node_transfers["Update transfers<br/>[sysupdate.d]"]
  node_partitioning["Update partitions<br/>[mkosi.repart]"]
end

subgraph group_custom["Drivers And Extensions"]
  node_broadcom["Broadcom driver<br/>[driver-broadcom]"]
  node_nvidia["NVIDIA driver<br/>[driver-nvidia]"]
  node_addons["Driver add-ons"]
  node_extensions["OS extensions<br/>[ext-sdk]"]
  node_virtualization["Virtualization extension<br/>[ext-virt]"]
end

subgraph group_repos["Package Sources"]
  node_sources["APT repositories"]
end

node_user(("OS user"))
node_build(("Image build"))
node_updatectl(("Update command"))

node_build -.->|"builds images"| node_base
node_user -->|"runs &#96;just&#96;"| node_build
node_user -.->|"boots"| node_liveiso
node_user -->|"runs installer"| node_installer
node_user -->|"uses GUI installer"| node_classic
node_updatectl -.->|"requests upgrade"| node_sysupdate
node_sysupdate -.->|"uses transfer definitions"| node_transfers
node_sysupdate -.->|"defines partitions"| node_partitioning

click node_base "https://github.com/elementary/os/tree/main/mkosi.images/base"
click node_profiles "https://github.com/elementary/os/tree/main/mkosi.images/base/mkosi.profiles"
click node_liveiso "https://github.com/elementary/os/tree/main/mkosi.images/liveiso"
click node_installer "https://github.com/elementary/os/blob/main/mkosi.images/liveiso/mkosi.extra/usr/sbin/elementary-install"
click node_classic "https://github.com/elementary/os/blob/main/mkosi.images/liveiso/mkosi.conf"
click node_sysupdate "https://github.com/elementary/os/tree/main/mkosi.images/sysupdate"
click node_transfers "https://github.com/elementary/os/tree/main/mkosi.images/sysupdate/mkosi.extra/usr/lib/sysupdate.d"
click node_partitioning "https://github.com/elementary/os/tree/main/mkosi.images/sysupdate/mkosi.repart"
click node_broadcom "https://github.com/elementary/os/tree/main/mkosi.images/driver-broadcom"
click node_nvidia "https://github.com/elementary/os/tree/main/mkosi.images/driver-nvidia"
click node_addons "https://github.com/elementary/os/tree/main/mkosi.images/driver-broadcom-addon"
click node_extensions "https://github.com/elementary/os/tree/main/mkosi.images/ext-sdk"
click node_virtualization "https://github.com/elementary/os/tree/main/mkosi.images/ext-virt"
click node_sources "https://github.com/elementary/os/tree/main/repos"

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_base,node_profiles,node_user toneBlue
class node_liveiso,node_installer,node_classic toneAmber
class node_sysupdate,node_transfers,node_partitioning toneMint
class node_broadcom,node_nvidia,node_addons,node_extensions,node_virtualization toneRose
class node_sources,node_build,node_updatectl toneIndigo
```

## Components

### OS Images

- [Base system image](https://github.com/elementary/os/tree/main/mkosi.images/base): `mkosi.images/base`
- [Release profiles](https://github.com/elementary/os/tree/main/mkosi.images/base/mkosi.profiles): `mkosi.images/base/mkosi.profiles`

### Live Installation

- [Live ISO](https://github.com/elementary/os/tree/main/mkosi.images/liveiso): `mkosi.images/liveiso`
- [System installer](https://github.com/elementary/os/blob/main/mkosi.images/liveiso/mkosi.extra/usr/sbin/elementary-install): `mkosi.images/liveiso/mkosi.extra/usr/sbin/elementary-install`
- [Classic installation](https://github.com/elementary/os/blob/main/mkosi.images/liveiso/mkosi.conf): `mkosi.images/liveiso/mkosi.conf`

### System Updates

- [Update image](https://github.com/elementary/os/tree/main/mkosi.images/sysupdate): `mkosi.images/sysupdate`
- [Update transfers](https://github.com/elementary/os/tree/main/mkosi.images/sysupdate/mkosi.extra/usr/lib/sysupdate.d): `mkosi.images/sysupdate/mkosi.extra/usr/lib/sysupdate.d`
- [Update partitions](https://github.com/elementary/os/tree/main/mkosi.images/sysupdate/mkosi.repart): `mkosi.images/sysupdate/mkosi.repart`

### Drivers And Extensions

- [Broadcom driver](https://github.com/elementary/os/tree/main/mkosi.images/driver-broadcom): `mkosi.images/driver-broadcom`
- [NVIDIA driver](https://github.com/elementary/os/tree/main/mkosi.images/driver-nvidia): `mkosi.images/driver-nvidia`
- [Driver add-ons](https://github.com/elementary/os/tree/main/mkosi.images/driver-broadcom-addon): `mkosi.images/driver-broadcom-addon`
- [OS extensions](https://github.com/elementary/os/tree/main/mkosi.images/ext-sdk): `mkosi.images/ext-sdk`
- [Virtualization extension](https://github.com/elementary/os/tree/main/mkosi.images/ext-virt): `mkosi.images/ext-virt`

### Package Sources

- [APT repositories](https://github.com/elementary/os/tree/main/repos): `repos`

### Other components

- **OS user**
- **Image build**
- **Update command**

## Connections

- Image build → Base system image: builds images
- OS user → Image build: runs `just` (evidence: `README.md`)
- OS user → Live ISO: boots
- OS user → System installer: runs installer (evidence: `README.md`)
- OS user → Classic installation: uses GUI installer (evidence: `README.md`)
- Update command → Update image: requests upgrade
- Update image → Update transfers: uses transfer definitions
- Update image → Update partitions: defines partitions
