grub and encrypted partition
by drahal from LinuxQuestions.org on (#5G73M)
I'm installing gentoo on a uefi system with a gpt partition table on my disk. I have come towards the end of the installation process. My parititons are:
partition 1 = efi
partition 2 = swap
partition 3 = root (encrypted)
-/dev/mapper/luks1
I currently have the luks1 opened since im still in the live env. I have all of them in fstab but for root i have /dev/mapper/luks1 instead of the partition 3. Now i supposedly have to edit my grub.cfg for crypt_root and real_root. I have never done this before. What exactly do i put in the /etc/default/grub? Do i put it under GRUB_CMDLINE_LINUX? I dont use lvm i only have my root encrypted.


partition 1 = efi
partition 2 = swap
partition 3 = root (encrypted)
-/dev/mapper/luks1
I currently have the luks1 opened since im still in the live env. I have all of them in fstab but for root i have /dev/mapper/luks1 instead of the partition 3. Now i supposedly have to edit my grub.cfg for crypt_root and real_root. I have never done this before. What exactly do i put in the /etc/default/grub? Do i put it under GRUB_CMDLINE_LINUX? I dont use lvm i only have my root encrypted.