Skip to content

v0.5.0

Choose a tag to compare

@vovawees vovawees released this 04 Nov 20:03
· 12 commits to main since this release

cleanlinux-install 0.5.0

  • --encrypt: the root partition becomes a LUKS2 container (cryptsetup luksFormat, argon2id, label CleanLinux) with btrfs inside. It is opened as /dev/mapper/luks-<UUID> — the name the initramfs of the new system gives it — and fstab and root= use that name; the kernel command line gets rd.luks.uuid=<UUID>.
  • /etc/cleanlinux/initramfs.d/50-luks-root.conf (modules=dm-crypt, files=/usr/bin/cryptsetup) is written before the packages, so the kernel trigger already builds the initramfs (cleanlinux-boot), and the installer checks that it exists.
  • The passphrase comes from the terminal (asked twice) or --encrypt-password-file F (- for stdin) and reaches cryptsetup on stdin as is — never printed, not even with --dry-run. The container is closed at the end (unless --keep-mounted).
  • --target: the root may be an open LUKS container; the installer finds it through its device-mapper UUID (CRYPT-LUKS2-…) and sets up the same initramfs. Other encrypted filesystems are not opened at boot (no crypttab); LVM is not supported.
  • With --packages, cryptsetup is added when the root is encrypted.
  • Needs cryptsetup ≥ 2.4 (LUKS2) on the running system; the initramfs (rd.luks.uuid=) is in every cleanlinux-boot release.