Hey, I noticed in one of your more recent builds that the new version of Cnchi installer has the option LUKS encrypting individual partitions (no LVM2) . Would the tutorial I’m proposing still be relevant/helpful to you guys, I’ve written a third of it but it’s pretty long and I’d rather not write if it’s not needed.
I’ll give you the details and you can give me some feedback:
The tutorial would be on how to setup a LVM2 logical volume group in a luks encrypted container. In the January 2015 release of Antergos, I found the command line installer to be broken (as in, it was missing alot of thing in it’s installation, giving error in mkcpio and grub etc etc) but it had a great utility which took made setting up LVM2 and LUKS really easy. In my tutorial, I would show the reader how to use the CLI to get their encryption and logical volumes going and then use Cnchi to do the rest of the installation. This would be the structure more or less:
- Step 1: Setup your windows before setup your linux (make sure it’s only taking up only a fraction of your hard drive). If you want to keep an already existing windows, you’ll have to resize it’s partition.
- Step 2: Launch Antergos CD or USB
- Step 3: Launch CLI installer and use it to setup LUKS encrypted container and LVM2 logical volumes where you will install your different Antergos partitions.
- Step 4: Close CLI and use Nautilus (Files) to decrypt and mount LUKS/LVM2 partitions.
- Step 5: Open Cnchi and use Cnchi GUI installer to install Antergos. In prepare hard disk section of installer: be sure to select custom partitions (that’s the second option). You now be able to see the LUKS/LVM2 partion’s you’ve mounted and able to format and use them as mount points. Do not reboot when installation is finished.
- Step 6: Add encrypt and lvm2 hooks to /install/etc/mkinitcpio.conf (/install is the mount path for your future Antergos root)
- Step 7: Add relevant encryption parameters to /install/etc/grub file
- Step 8: Setup an environment where you can compile the mkinitcpio.conf and grub files. In terminal chroot the /install directory or whatever your Antergos root partition mount path is.
mount or bind /boot /proc /dev /sys run/lvm and any partions you’ve setup (such as /home or /usr etc…)
- Step 9: From terminal, while in chroot, run mkinitcpio and grub-mkconfig
- Miscellaneous: some errors you can run into; managing your LVM2 volumes