morpheus_bootloader::tui

Module distro_downloader

Source
Expand description

Distro Downloader Module

Provides a TUI for browsing, downloading, and managing Linux distribution ISOs. Downloads are stored using chunked FAT32 storage (bypassing 4GB limit). Integrates ISO management for viewing, deleting, and booting downloaded ISOs.

§Architecture

┌─────────────────────────────────────────────────────────────┐
│                    DistroDownloader                         │
├─────────────────────────────────────────────────────────────┤
│  ┌─────────────┐  ┌──────────────┐  ┌───────────────────┐  │
│  │   Catalog   │  │    State     │  │   IsoStorage      │  │
│  │  (static)   │  │ (UI + DL)    │  │   (chunked)       │  │
│  └─────────────┘  └──────────────┘  └───────────────────┘  │
│         │                │                    │            │
│         ▼                ▼                    ▼            │
│  ┌─────────────────────────────────────────────────────┐   │
│  │     UI Event Loop (Browse / Manage / Download)      │   │
│  └─────────────────────────────────────────────────────┘   │
└─────────────────────────────────────────────────────────────┘

Re-exports§

Modules§

  • Distribution Catalog
  • Download commit flow - transitions from UEFI to bare-metal for ISO download.
  • Manifest I/O operations
  • Network connectivity verification for distro downloader
  • Distro Downloader Renderer
  • State management for Distro Downloader
  • Distro Downloader UI