Written to: 1 requirement: 1 proved, 0 partly, 0 failing, 0 with no test recorded. 0003-netboot-logical FR-002
The arming of a host for one install: a host is armed with a token that the install's URLs carry, and stays armed until the installer says it is done, so that a machine is not reinstalled by its next network boot. The state is a plain value: what is armed, what has installed (and from which MAC), and the progress of installs. Every change is a function that gives a new value.
typeArming= {
readonlytoken:string;
readonlyat:string;
/** A person said that a machine with data on its disks may be erased. */readonlyconfirmDestroy?:boolean;
/** The MAC that the install is for, where it is known beforehand. */readonlymac?:string;
};
typeBootState= {
readonlyarmed:Readonly<Record<string, Arming>>;
/** Hosts that installed, with the MAC they installed from. */readonlyinstalled:Readonly<Record<string, { readonlymac?:string; readonlyat:string }>>;
readonlyprogress:readonlyProgress[];
};
typeArming= {
readonlytoken:string;
readonlyat:string;
/** A person said that a machine with data on its disks may be erased. */readonlyconfirmDestroy?:boolean;
/** The MAC that the install is for, where it is known beforehand. */readonlymac?:string;
};
typeBootState= {
readonlyarmed:Readonly<Record<string, Arming>>;
/** Hosts that installed, with the MAC they installed from. */readonlyinstalled:Readonly<Record<string, { readonlymac?:string; readonlyat:string }>>;
readonlyprogress:readonlyProgress[];
};