Not meant to be copy&pasted, please think for yourself.
/boot/rd.auto=1 to GRUBCMDLINELINUX_DEFAULT variable in /etc/default/grubrd.vconsole.keymap=dvorak to GRUBCMDLINELINUX_DEFAULT variable in /etc/default/grubThis section does not follow the best practices, such as writing over the drive with random data, but will provide a basic encrypted system. Everything will be encrypted except /boot.
Warning: Do not folow this guide to the letter if you have more than one drive or if you have any data you do not want to lose! This guide will destroy all data on /dev/sda!
First boot the live cd of your choice and then:
Press <CTRL> + <ALT> + <F1> and and log in as root:
Username: root
Password: voidlinux
It's time to setup the disk. Remember, all data on the disk will be destroyed.
fdisk /dev/sdaon<enter><enter><enter>+1Gn<enter><enter><enter><enter>p -- Confirm that you have two partitons. One 1G partition for /boot and the rest of the drive will be dedicated to luks.wCreate and open the LUKS device:
cryptsetup luksFormat /dev/sda2 -- Time for that super secret password! Don't forget it, or you'll lose access to all of your data!cryptsetup luksOpen /dev/sda2 crypt-poolCreate a volume group and add sub volumes:
vgcreate pool /dev/mapper/crypt-poollvcreate --name root -L 20G pool -- Feel free to use more for root if needed.lvcreate --name swap -L 16G pool -- Optional. But shoot for double the ram if used.lvcreate --name home -l 100%FREE pool -- Note the lowercase "L". If a specific size is required, make it the same way we made the others.Make sure grub knows what's going on:
vi /etc/default/grub Find this line:
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=4And change it to:
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=4 rd.auto=1 cryptdevice=/dev/sda2 root=/dev/mapper/pool-root"Install Void like normal. Run void-installer and follow the steps with the following exceptions:
If networking fails to connect, there may be a simple conflict with whatever the live environment is running, it's typically safe to ignore and move on to the next step.
Skip the partioning step.
On the filesystem step set sda1 to ext2 /boot and the rest should be obvious. Choose your favorite file system for root and home, or just stick with the old stand by of ext4.
Set pool-root to /
Set pool-home to /home
Set swap to swap if applicable.
Go back to choose the install step and follow instructions. Select "yes" when it prompts to reboot and enjoy an encrypted system!