logical.MenuHosttypeno test imports ittype MenuHost = { readonly name: string };A host the menus name.
The GRUB configurations Ubuntu's network GRUB is served. A machine is found by its MAC address; one that is not armed boots its own disk, and one the server does not know is offered the armed hosts with its own disk as the default, so that a stray network boot never reinstalls anything.
import { mainMenu } from "./grub.ts";
mainMenu().includes("configfile /boot/hosts/"); // truelogical.MenuHosttypeno test imports ittype MenuHost = { readonly name: string };A host the menus name.
logical.mainMenufunctionno test imports itfunction mainMenu(): stringThe menu every machine starts at: hand the machine to its own configuration by its MAC address.
logical.kernelLinefunctionno test imports itfunction kernelLine(host: MenuHost, profile: BootProfile, base: string, token: string): stringThe kernel's command line of a profile for one host: the placeholders of the profile's template filled in. GRUB fills in the MAC it booted from, so that the installed network matches it. base is the server's URL ending in a slash.
logical.hostMenufunctionno test imports itfunction hostMenu(host: MenuHost, profile: BootProfile, base: string, token: string | undefined): stringThe menu of a known host: an unattended install when it is armed (token set), otherwise its own disk.
logical.chooserMenufunctionno test imports itfunction chooserMenu(armed: readonly { readonly host: MenuHost; readonly token: string; }[], profile: BootProfile, base: string): stringThe menu of a machine the server does not know: the armed hosts, with the local disk the default unless someone at the console picks one.
MenuHosttypeno test imports ittype MenuHost = { readonly name: string };A host the menus name.
mainMenufunctionfunction mainMenu(): stringThe menu every machine starts at: hand the machine to its own configuration by its MAC address.
kernelLinefunctionno test imports itfunction kernelLine(host: MenuHost, profile: BootProfile, base: string, token: string): stringThe kernel's command line of a profile for one host: the placeholders of the profile's template filled in. GRUB fills in the MAC it booted from, so that the installed network matches it. base is the server's URL ending in a slash.
hostMenufunctionfunction hostMenu(host: MenuHost, profile: BootProfile, base: string, token: string | undefined): stringThe menu of a known host: an unattended install when it is armed (token set), otherwise its own disk.
chooserMenufunctionfunction chooserMenu(armed: readonly { readonly host: MenuHost; readonly token: string; }[], profile: BootProfile, base: string): stringThe menu of a machine the server does not know: the armed hosts, with the local disk the default unless someone at the console picks one.