disk

package
v0.0.0-...-6b8ee43 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2026 License: AGPL-3.0 Imports: 23 Imported by: 0

Documentation

Overview

Package disk implements the ze install disk workflow that writes a disk image and injects the database.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(_ []string) int

Run is the entry point for `ze install disk`. It reads the kernel cmdline, validates inputs, and performs the install (HTTP download or ISO write). Returns 0 on success, 1 on error.

Types

type InstallConfig

type InstallConfig struct {
	Source     string // http or iso
	Server     string // ze-install server IP (http mode)
	Image      string // image filename
	Port       string // install HTTP port
	Target     string // explicit target disk path
	Wait       string // max server probe attempts
	MediaID    string // ISO media identifier (32 hex chars)
	Mac        string // boot NIC MAC for pinning (ze.mac)
	RescueAuth string // salted argon2id of the rescue token (ze.rescue-auth)
}

InstallConfig holds parsed kernel cmdline parameters for the installer.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL