Skip to main content
On this page

Install variants

The installer makes two decisions and you make one. It records all three in a file on the box, modules/install-target.nix. A reinstall from the same medium repeats them, and a nightly update never undoes them.

How the disk is unlocked​

Every box has an encrypted disk. The installer formats it unattended, from a random key it generates. The variants differ in where that key lives at boot.

VariantWhenWhat it means
TPM (the default)The installer found a TPM 2.0 chipThe key is sealed into the chip. The boot partition carries no secret. The disk on its own, pulled or cloned, is unreadable. The box still boots unattended.
KeyfileNo chip, or losos-ctl install --no-tpmThe key sits on the unencrypted boot partition, so the box can boot unattended. Whoever takes the disk has the data. Fine for a VM or a test box.

The installer prints which one it chose: unlock: TPM or unlock: keyfile in the initrd. The TPM key is not bound to firmware measurements, on purpose. The box updates its firmware, bootloader and kernel on its own and has no shell to recover from a lockout. The cost is that a thief who takes the whole box, chip included, can still boot it. The security model says so plainly. TPM and the disk key explains what a box without a chip gives up, and how to move it to one.

Proof from an install in a virtual machine with an emulated TPM: the encrypted volume has a systemd-tpm2 token in key slot 1, and the key file stays on the encrypted volume only.

No passphrase at boot

A box never asks for a passphrase at boot. If yours does, something is wrong; see Stuck at a passphrase prompt.

UEFI or BIOS​

This is the only question the installer asks. UEFI gets systemd-boot. BIOS gets GRUB and a 1 MiB boot partition on the first disk. Autodetect picks the mode the stick was booted in, and the menu takes it after 30 seconds, so an unattended boot still installs. UEFI needs the stick itself booted in UEFI mode. On a BIOS-booted stick the installer refuses UEFI before it touches any disk. BIOS is mainly for virtual machines. Under UEFI the stick is signed, and a firmware with the LosOS certificate enrolled verifies it. The installed box's own loader is not signed, so the box needs Secure Boot off. See Secure Boot and signed media.

The installer's firmware menu under the salmon: 1 BIOS, 2 UEFI, 3 Autodetect, which starts by itself after 30 seconds.

The three media​

MediumSizeUse
Installer ISOsmallThe normal one, attached to every release. The target downloads the system it installs.
ISO with the full systemlargeCarries the built system, so the install copies instead of downloads. Build it yourself.
Edge installer ISOsmallThe installer ISO prefilled for one edge. It installs by itself, and the disk unlocks with the TPM and that edge.
Demo disk image (QCOW2)largeA preinstalled virtual disk for QEMU or virt-manager. No encryption, no installer. For demos.

The edge installer ISO​

The edge installer is the installer ISO with the disk opened through the edge as a key server. The edge address is fixed when the ISO is built. Boot it and leave it. When the firmware menu times out, the install starts by itself, seals the disk key to the TPM and to that edge, and reboots. Nobody types anything.

On a box with no TPM chip it stops and says why. It does not fall back to the weaker keyfile unlock. A flag typed onto losos-install outranks the prefill, so an operator on the phone can still choose differently for one run.

It is not attached to releases. The builder names the edge, so a release copy would carry an edge that is not yours. Build one with:

LOSOS_EDGE_URL=https://edge.example.org nix build --impure \
.#nixosConfigurations.iso-edge.config.system.build.isoImage

Its volume label is LOSOS_EDGE and its file name contains losos-installer-edge, so you can tell it from the plain stick.

Growing into the rest of the disk​

The installer leaves 10 % of the disk unused on purpose. The box can grow into that reserve later without anyone opening the case. The Storage pane's Use the reserve button claims it; see Disk growth.

The disk from the outside in: one volume group holding the logical volume, the encryption layer inside it and the filesystem inside that, with a 10 % reserve beside them.