# snapshotmanager/boom-boot architecture

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

- Interactive diagram: https://gitdiagram.com/snapshotmanager/boom-boot
- Repository: https://github.com/snapshotmanager/boom-boot

## Overview

Boom is a Linux Boot Loader Specification manager for creating and maintaining boot entries, including entries that boot storage snapshots. The principal workflow is an administrator invoking the CLI to create or manage entries; Boom uses OS and host profiles to derive boot parameters, writes BLS entries, and can optionally back up kernel and initramfs images. The README also documents legacy bootloader synchronization and LVM2, Stratis, and BTRFS support. Relationships are limited to README statements and SOURCE INDEX references; unsampled implementation details are not inferred.

Main entry points: [`boom/command.py`](https://github.com/snapshotmanager/boom-boot/blob/main/boom/command.py) (Boom CLI), [`boom/bootloader.py`](https://github.com/snapshotmanager/boom-boot/blob/main/boom/bootloader.py) (BLS entries), [`boom/cache.py`](https://github.com/snapshotmanager/boom-boot/blob/main/boom/cache.py) (Boot image cache), [`boom/legacy.py`](https://github.com/snapshotmanager/boom-boot/blob/main/boom/legacy.py) (Legacy sync)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_cli["Command interface"]
  node_cli["Boom CLI<br/>[command.py]"]
  node_reports["Reports<br/>[report.py]"]
end

subgraph group_profiles["Profiles and configuration"]
  node_core["Shared definitions<br/>[_boom.py]"]
  node_config["Configuration<br/>[config.py]"]
  node_osprofile["OS profiles<br/>[osprofile.py]"]
  node_hostprofile["Host profiles<br/>[hostprofile.py]"]
end

subgraph group_entries["Boot entry management"]
  node_boot["BLS entries<br/>[bootloader.py]"]
  node_cache[("Boot image cache<br/>[cache.py]")]
  node_legacy["Legacy sync<br/>[legacy.py]"]
end

subgraph group_integrations["Storage and compatibility"]
  node_mounts["Mount handling<br/>[mounts.py]"]
  node_lvm["LVM2 support<br/>[lvm2.py]"]
  node_stratis["Stratis support<br/>[stratis.py]"]
  node_storage[("Snapshot storage")]
end

node_admin(("System administrator"))
node_bls["BLS bootloader"]
node_stratisd["stratisd service"]

node_admin -->|"runs commands"| node_cli
node_cli -->|"manages entries"| node_boot
node_cli -->|"manages profiles"| node_osprofile
node_cli -->|"manages profiles"| node_hostprofile
node_cli -->|"formats output"| node_reports
node_cli -->|"uses settings"| node_config
node_cli -->|"manages cache"| node_cache
node_cli -->|"syncs entries"| node_legacy
node_cli -->|"parses mounts"| node_mounts
node_boot -->|"uses templates"| node_osprofile
node_boot -->|"uses overrides"| node_hostprofile
node_boot -->|"checks LVM"| node_lvm
node_boot -->|"checks Stratis"| node_stratis
node_boot -->|"writes entries"| node_bls
node_cache -->|"backs up images"| node_boot
node_legacy -->|"reads entries"| node_boot
node_stratis -->|"queries service"| node_stratisd
node_storage -.->|"provides snapshots"| node_boot
node_admin -->|"creates snapshots"| node_storage
node_core -.->|"holds settings"| node_config

click node_cli "https://github.com/snapshotmanager/boom-boot/blob/main/boom/command.py"
click node_reports "https://github.com/snapshotmanager/boom-boot/blob/main/boom/report.py"
click node_core "https://github.com/snapshotmanager/boom-boot/blob/main/boom/_boom.py"
click node_config "https://github.com/snapshotmanager/boom-boot/blob/main/boom/config.py"
click node_osprofile "https://github.com/snapshotmanager/boom-boot/blob/main/boom/osprofile.py"
click node_hostprofile "https://github.com/snapshotmanager/boom-boot/blob/main/boom/hostprofile.py"
click node_boot "https://github.com/snapshotmanager/boom-boot/blob/main/boom/bootloader.py"
click node_cache "https://github.com/snapshotmanager/boom-boot/blob/main/boom/cache.py"
click node_legacy "https://github.com/snapshotmanager/boom-boot/blob/main/boom/legacy.py"
click node_mounts "https://github.com/snapshotmanager/boom-boot/blob/main/boom/mounts.py"
click node_lvm "https://github.com/snapshotmanager/boom-boot/blob/main/boom/lvm2.py"
click node_stratis "https://github.com/snapshotmanager/boom-boot/blob/main/boom/stratis.py"

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_cli,node_reports toneBlue
class node_core,node_config,node_osprofile,node_hostprofile toneAmber
class node_boot,node_cache,node_legacy toneMint
class node_mounts,node_lvm,node_stratis,node_storage toneRose
class node_admin,node_bls,node_stratisd toneIndigo
```

## Components

### Command interface

- [Boom CLI](https://github.com/snapshotmanager/boom-boot/blob/main/boom/command.py): `boom/command.py`
- [Reports](https://github.com/snapshotmanager/boom-boot/blob/main/boom/report.py): `boom/report.py`

### Profiles and configuration

- [Shared definitions](https://github.com/snapshotmanager/boom-boot/blob/main/boom/_boom.py): `boom/_boom.py`
- [Configuration](https://github.com/snapshotmanager/boom-boot/blob/main/boom/config.py): `boom/config.py`
- [OS profiles](https://github.com/snapshotmanager/boom-boot/blob/main/boom/osprofile.py): `boom/osprofile.py`
- [Host profiles](https://github.com/snapshotmanager/boom-boot/blob/main/boom/hostprofile.py): `boom/hostprofile.py`

### Boot entry management

- [BLS entries](https://github.com/snapshotmanager/boom-boot/blob/main/boom/bootloader.py): `boom/bootloader.py`
- [Boot image cache](https://github.com/snapshotmanager/boom-boot/blob/main/boom/cache.py): `boom/cache.py`
- [Legacy sync](https://github.com/snapshotmanager/boom-boot/blob/main/boom/legacy.py): `boom/legacy.py`

### Storage and compatibility

- [Mount handling](https://github.com/snapshotmanager/boom-boot/blob/main/boom/mounts.py): `boom/mounts.py`
- [LVM2 support](https://github.com/snapshotmanager/boom-boot/blob/main/boom/lvm2.py): `boom/lvm2.py`
- [Stratis support](https://github.com/snapshotmanager/boom-boot/blob/main/boom/stratis.py): `boom/stratis.py`
- **Snapshot storage**

### Other components

- **System administrator**
- **BLS bootloader**
- **stratisd service**

## Connections

- System administrator → Boom CLI: runs commands (evidence: `README.md`)
- Boom CLI → BLS entries: manages entries (evidence: `boom/command.py`)
- Boom CLI → OS profiles: manages profiles (evidence: `boom/command.py`)
- Boom CLI → Host profiles: manages profiles (evidence: `boom/command.py`)
- Boom CLI → Reports: formats output (evidence: `boom/command.py`)
- Boom CLI → Configuration: uses settings (evidence: `boom/command.py`)
- Boom CLI → Boot image cache: manages cache (evidence: `boom/command.py`)
- Boom CLI → Legacy sync: syncs entries (evidence: `boom/command.py`)
- Boom CLI → Mount handling: parses mounts (evidence: `boom/command.py`)
- BLS entries → OS profiles: uses templates (evidence: `boom/bootloader.py`)
- BLS entries → Host profiles: uses overrides (evidence: `boom/bootloader.py`)
- BLS entries → LVM2 support: checks LVM (evidence: `boom/bootloader.py`)
- BLS entries → Stratis support: checks Stratis (evidence: `boom/bootloader.py`)
- BLS entries → BLS bootloader: writes entries (evidence: `README.md`)
- Boot image cache → BLS entries: backs up images (evidence: `boom/cache.py`)
- Legacy sync → BLS entries: reads entries (evidence: `boom/legacy.py`)
- Stratis support → stratisd service: queries service (evidence: `boom/stratis.py`)
- Snapshot storage → BLS entries: provides snapshots (evidence: `README.md`)
- System administrator → Snapshot storage: creates snapshots (evidence: `README.md`)
- Shared definitions → Configuration: holds settings
