IF Commons GitHub

preseed

Written to: 4 requirements: 4 proved, 0 partly, 0 failing, 0 with no test recorded. 0003-preseed-dialect FR-001, 0003-preseed-dialect FR-002, 0003-preseed-dialect FR-003, 0003-preseed-dialect FR-004

The unattended install of one machine, as Debian's installer reads it: a preseed file made from the same facts as the Ubuntu autoinstall (InstallSpec), so that a requirement states an install once and each installer gets its own words. The secret is never in what is rendered: a placeholder stands for the hash of the administrator's password, and the boot server puts it in when it serves the file. After the install the machine is handed to its signed repository exactly as an Ubuntu one is: the same files, the same converge script and the same timer are written to the new system.

The installer's own environment has neither curl nor lsblk, so the blank-disk guard cannot run in it: a Debian install erases the disk it picks (the largest one, or the one named), which the boot command says when it arms the asset.

import { preseed } from "./preseed.ts";
// preseed(spec).includes("d-i passwd/root-login boolean false"); // true for any spec

Source: commons/archon-dialect-cloud-init/src/preseed.ts

2 of 3 exports are imported by a test of the run. A test that imports an export may not call it or check what it returns.

firstBootFilesfunction
function firstBootFiles(spec: InstallSpec): readonly { readonly path: string; readonly content: string; readonly mode: string; }[]

The files the first boot needs, by path, with their mode. The same as the Ubuntu install writes.

Imported by 8 tests of the run (8 passed, 0 failed): the library's results

preseedfunction
function preseed(spec: InstallSpec, passwordHash?: string): string

The preseed of a machine. The password hash is the placeholder unless it is given (by the boot server, at the moment it serves the file). direct is the plain layout, lvm puts the system on logical volumes; ZFS is not an option of Debian's installer and is refused by the dialect.

Imported by 4 tests of the run (4 passed, 0 failed): the library's results

keyCommandsfunctionno test imports it
function keyCommands(spec: InstallSpec): string

The late commands that give the administrator the keys and turn password sign-in off, which the preseed has no question for.

Titles, headings, exports, tables, columns and requirements. Esc closes.