| REFORM-SETUP-ENCRYPTED-DISK(1) | User Commands | REFORM-SETUP-ENCRYPTED-DISK(1) |
reform-setup-encrypted-disk - setup encrypted disk
reform-setup-encrypted-disk [--help] [DEVICE_PATH]
Set up a disk with LUKS encryption containing LVM2 volumes for swap and the rootfs. Offers to run reform-migrate and reform-boot-config to set up the initramfs in /boot on the first partition of the eMMC or SD-card to load the rootfs from the encrypted disk.
Example 1: When booted from SD-card set up the first partition on eMMC as /boot and set up the SSD with LUKS. Set up LVM inside LUKS with one volume for swap and the other for the root file system. Copy the current system to /dev/reformvg/root:
Example 2: When booted from SD-card, set up eMMC with two partitions, the first one for /boot and the second for LUKS. Set up LVM inside LUKS with one volume for swap and the other for the root file system. Copy the current system to /dev/reformvg/root. Suppress any interactivity by using --force and obtain the LUKS passphrase from standard input.
| May 2025 | reform-setup-encrypted-disk 1.71 |