Historical: Linux-based prototype
Disk encryption in the installer
This page documents the earlier Linux-based prototype as of 24 November 2026. It does not describe the independent Khelforge OS, and its steps are not instructions for it. See the independent Khelforge OS.
Two separate kinds of encryption exist. Each account’s home is encrypted with LUKS2 by systemd-homed when the account is created at first boot. The root filesystem is encrypted only if the person turns that on in the installer. The default is off.
Both were tested in disposable virtual machines, not on physical hardware.
What is encrypted
Section titled “What is encrypted”| Data | Default installation | With disk encryption on |
|---|---|---|
| EFI partition: boot loader, unified kernel image (kernel, initramfs, command line) | Not encrypted | Not encrypted |
Root filesystem: programs, settings, /var, logs, package cache |
Not encrypted | LUKS2 |
| Home of the account created at first boot | LUKS2 home image | LUKS2 home image, inside the LUKS2 root |
| Swap | No swap partition is created | No swap partition is created |
Turning it on
Section titled “Turning it on”The Encryption page has one switch, Encrypt the system partition. It asks for a passphrase twice. The passphrase needs at least 8 characters, and the two entries must match. Continue also waits for a new partition plan for the encrypted layout.
The page warns that a forgotten passphrase cannot be recovered. The installer creates no recovery key for the disk. The recovery key made at first boot opens the account’s home only. It does not unlock the disk.
How the passphrase is handled
Section titled “How the passphrase is handled”The installer never writes the passphrase to a file and never puts it on a command line. Its copies are wiped once the volume is open, or when a step fails.
At boot and afterwards
Section titled “At boot and afterwards”The installed system asks for the passphrase at every start. After an installation, a failure or a cancel, the installer unmounts the new system and closes the volume. A restart is offered only after that.
How it was tested
Section titled “How it was tested”Virtual machine tests check that:
- an encrypted installation completes;
- the installed disk, started alone, asks for the passphrase and runs from the encrypted root;
- the volume is closed after a failed and after a finished installation.
The unit and visual tests check the passphrase rules.
Known limitations
Section titled “Known limitations”- Encryption protects data on a powered-off disk. It does not protect a running system.
- The boot files are not encrypted, and Secure Boot is not used, so the boot files are not protected against someone who can modify the disk.
- There is no TPM unlocking, no disk recovery key and no way to change the passphrase from a Khelforge interface.
- The passphrase is typed at boot with the keyboard layout chosen in the installer. Layouts other than US were not part of the VM test.
- An existing installation cannot be encrypted by the installer. It only erases and installs again.