Copies the live system to a local disk via unsquashfs — no debootstrap, no network required. Supports UEFI (GPT+EFI) and BIOS (MBR) layouts. ISO: - Add squashfs-tools, parted, grub-pc, grub-efi-amd64 to package list - New overlay script bee-install: partitions, formats, unsquashfs, writes fstab, runs grub-install+update-grub in chroot Go TUI: - Settings → Tools submenu (Install to disk, Check tools) - Disk picker screen: lists non-USB, non-boot disks via lsblk - Confirm screen warns about data loss - Runs with live progress tail of /tmp/bee-install.log - platform/install.go: ListInstallDisks, InstallToDisk, findLiveBootDevice Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
62 lines
843 B
Go
62 lines
843 B
Go
package tui
|
|
|
|
import (
|
|
"bee/audit/internal/app"
|
|
"bee/audit/internal/platform"
|
|
)
|
|
|
|
type resultMsg struct {
|
|
title string
|
|
body string
|
|
err error
|
|
back screen
|
|
}
|
|
|
|
type servicesMsg struct {
|
|
services []string
|
|
err error
|
|
}
|
|
|
|
type interfacesMsg struct {
|
|
ifaces []platform.InterfaceInfo
|
|
err error
|
|
}
|
|
|
|
type exportTargetsMsg struct {
|
|
targets []platform.RemovableTarget
|
|
err error
|
|
}
|
|
|
|
type snapshotMsg struct {
|
|
banner string
|
|
panel app.HardwarePanelData
|
|
}
|
|
|
|
type nvtopClosedMsg struct{}
|
|
|
|
type nvidiaSATDoneMsg struct {
|
|
title string
|
|
body string
|
|
err error
|
|
}
|
|
|
|
type gpuStressDoneMsg struct {
|
|
title string
|
|
body string
|
|
err error
|
|
}
|
|
|
|
type gpuLiveTickMsg struct {
|
|
rows []platform.GPUMetricRow
|
|
indices []int
|
|
}
|
|
|
|
type installDisksMsg struct {
|
|
disks []platform.InstallDisk
|
|
err error
|
|
}
|
|
|
|
type installDoneMsg struct {
|
|
err error
|
|
}
|