Hello,
I just installed OpenSUSE Tumbleweed on my laptop using encrypted rootfs, bootfs and swap. The system boots and seems to work fine, however I am experiencing some problems:
- Grub asks for the passphrase to decrypt root and linux asks for the passphrase to decrypt swap. I am never asked to decrypt the home partition.
- I am asked to decrypt swap, but swap is not mounted.
In order to be able to decrypt rootfs, swapfs and /home by entering a passphrase only once, I used the following partition scheme:
/dev/sda1: SEC_TYPE="msdos" UUID="0E57-2A49" TYPE="vfat" PARTUUID="6842e7ea-baf9-4ac4-9f61-9c461d017445"
/dev/sda2: UUID="595f3b34-a518-452d-b481-8f3043add7c9" TYPE="crypto_LUKS" PARTUUID="3a82a79e-486b-4cfd-9372-95264cfdd160"
/dev/sda3: UUID="6ad5f082-0d18-4e75-bd81-4b0a89fc9b52" TYPE="crypto_LUKS" PARTUUID="3d87b04f-1cb1-4166-a9af-320b48d5aecb"
/dev/sda4: UUID="1cf7b3d3-d87e-483d-af9d-97e083cb2a55" TYPE="crypto_LUKS" PARTUUID="ed3aa191-468f-491b-ae3c-9ef8f930185c"
/dev/mapper/cr_ata-SanDisk_SD6SB1M256G1002_142624402217-part3: UUID="40c7e221-c24e-4a50-831a-8e83b679a521" TYPE="ext4"
/dev/mapper/cr_ata-SanDisk_SD6SB1M256G1002_142624402217-part2: UUID="049b7e1a-5bcd-4aee-8086-0b8836411f00" TYPE="swap"
/dev/mapper/cr_ata-SanDisk_SD6SB1M256G1002_142624402217-part4: UUID="99103a7b-85b9-47e4-b82a-2d03d3a484a3" TYPE="ext4"
The first partition is the EFI system partition, which is automatically mounted to /boot/efi. If I understood correctly, /boot is then part of the rootfs, so that I can follow the instructions of the OpenSUSE Manual to place a key within the rootfs, which prevents the linux from asking for the passphrase a second time. Following these guide, I modified /etc/crypttab as follows:
cr_ata-SanDisk_SD6SB1M256G1002_142624402217-part2 UUID=595f3b34-a518-452d-b481-8f3043add7c9
cr_ata-SanDisk_SD6SB1M256G1002_142624402217-part3 UUID=6ad5f082-0d18-4e75-bd81-4b0a89fc9b52 /.root.key
cr_ata-SanDisk_SD6SB1M256G1002_142624402217-part4 UUID=1cf7b3d3-d87e-483d-af9d-97e083cb2a55
Is this setup correct and why do I have to enter the passphrase for swap and not for /home? And is there a way to rename the name of the mapped devices?
Thanks in advance.
Phidelux