So I am trying to install Arch Linux with separate root and home partitions (also swap and boot ofc). Basically I've partitioned them, I've mounted them, and I've encrypted /
and /home
(using cryptsetup luksFormat
). It looks like this under lsblk
:
(sorry, cannot copy the text from the virtual machine at this stage)
Now I am trying to achieve the following things:
- I want to decrypt all the partitions at system startup, without having to type the passphrase for each one (I've made them identical by the way)
- I want to configure GRUB for the encrypted partitions, but so far I've only seen configurations with
GRUB_CMDLINE_LINUX="cryptdevice=/dev/sdXY:cryptroot"
and I have two of them, so I don't really know what should I put here (maybe only/
one?)
So for now I am stuck at the point when I want to run mkinitcpio
and grub-install/grub-mkconfig
but I can't since I probably won't be able to boot my system without a proper GRUB configuration.
Do you guys know how would I achieve this? The second one is more important, since there are docs on the first issue, just wanted to put it there for a one-liner advice I guess, it's the second one I've been scratching my head about for the last two hours.