How shark-empire/mitos-installer works
MITOS Installer is a Rust command-line installer for deploying an operating system to a selected disk. The main workflow gathers network, disk, filesystem, account, and regional settings; checks prerequisites; partitions and formats storage; mounts the target; deploys the root filesystem and kernel; then configures boot, system settings, networking, and users. Failure triggers emergency cleanup. The README contains only the product name, and several modules are unsampled, so their internal behavior and wiring are not inferred here.
Main entry points: installer.rs Installer pipeline · main.rs Program entry · ui.rs Setup wizard · utils.rs Chroot utilities
Components 23
Installer entry
- Program entry
src/main.rs - Logging
src/logging.rs - Installer pipeline
src/installer.rs - Failure cleanup
src/recovery.rs
Interactive setup
- Setup wizard
src/ui.rs - Available disks
src/disk.rs - Platform detection
src/platform.rs - Hardware checks
src/hardware.rs - Prerequisite checks
src/verify.rs
Disk and deployment
- Disk partitioning
src/partition.rs - Filesystem formatting
src/filesystem.rs - Target mounts
src/mount.rs - Root filesystem deployment
src/rootfs.rs - Kernel installation
src/kernel.rs - Limine boot setup
src/bootloader.rs
System configuration
- System configuration
src/config.rs - Init configuration
src/init.rs - Locale and timezone
src/locale.rs - Network configuration
src/network.rs - User accounts
src/users.rs - Security setup
src/security.rs - Chroot utilities
src/utils.rs
Other components
- Installer operator
Connections 25
- Installer operator → Program entry: starts installer
- Program entry → Logging: initializes logs
- Program entry → Setup wizard: starts setup
- Setup wizard → Available disks: lists disks
- Setup wizard → Installer pipeline: sets configuration
- Program entry → Installer pipeline: executes pipeline
- Installer pipeline → Platform detection: detects platform
- Installer pipeline → Hardware checks: checks requirements
- Installer pipeline → Prerequisite checks: checks prerequisites
- Installer pipeline → Disk partitioning: partitions target
- Installer pipeline → Filesystem formatting: formats partitions
- Installer pipeline → Target mounts: mounts target
- Installer pipeline → Root filesystem deployment: deploys rootfs
- Installer pipeline → Kernel installation: installs kernel
- Installer pipeline → Init configuration: configures init
- Installer pipeline → Limine boot setup: installs bootloader
- Installer pipeline → System configuration: configures system
- Installer pipeline → Locale and timezone: configures locale
- Installer pipeline → Network configuration: configures networking
- Installer pipeline → User accounts: creates accounts
- Installer pipeline → Hardware checks: profiles hardware
- Installer pipeline → Chroot utilities: runs chroot command
- User accounts → Chroot utilities: runs chroot command
- Locale and timezone → Chroot utilities: runs chroot command
- Program entry → Failure cleanup: cleans up on failure