Hi there!
I have installed EOS 2024.09.22. Since I wanted a fully encrypted system and the installer seems to be a bit restrictive with this, I ended up installing EOS on a single partition, then I added two more encrypted partitions. Bootloader is systemd.
My setup is 4 partitions (in order): efi, root, home, and swap, the last three of which are LUKS2 encrypted (all with the same passphrase for the moment). The first encrypted partition, root, was added at install time to crypttab and fstab. I manually added home and swap to both crypttab and fstab.
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
nvme0n1 259:0 0 476,9G 0 disk
├─nvme0n1p1 259:1 0 1G 0 part /efi
├─nvme0n1p2 259:2 0 80G 0 part
│ └─luks-edf905f4-2c57-4279-80f3-6061c918ebb1 254:0 0 80G 0 crypt /
├─nvme0n1p3 259:3 0 240G 0 part
│ └─luks-e00e47f2-fda9-4c32-865f-d7d74501560d 254:1 0 240G 0 crypt /home
├─nvme0n1p4 259:4 0 18G 0 part
│ └─luks-ee6cb58e-9c4e-4a7a-ac65-4e89c68c0354 254:2 0 18G 0 crypt [SWAP]
└─nvme0n1p5 259:5 0 137,9G 0 part
Sometimes, the system boots just fine. I enter the passphrase once and all is runs smoothly, but for the error message below. Other times (the most), the system hangs at a black screen after several job pauses (waiting for…).
Anyhow I get an error message about a systemd fight:
oct 25 12:31:12 host systemd[1]: Starting Cryptography Setup for luks-edf905f4-2c57-4279-80f3-6061c918ebb1...
oct 25 12:31:16 host systemd-cryptsetup[556]: Set cipher aes, mode xts-plain64, key size 512 bits for device /dev/disk/by-uuid/edf905f4-2c57-4279-80f3-6061c918ebb1.
oct 25 12:31:17 host systemd[1]: Finished Cryptography Setup for luks-edf905f4-2c57-4279-80f3-6061c918ebb1.
oct 25 12:31:19 host systemd[1]: Starting Cryptography Setup for home...
oct 25 12:31:19 host systemd[1]: Starting Cryptography Setup for luks-e00e47f2-fda9-4c32-865f-d7d74501560d...
oct 25 12:31:19 host systemd[1]: Starting Cryptography Setup for luks-ee6cb58e-9c4e-4a7a-ac65-4e89c68c0354...
oct 25 12:31:19 host systemd-cryptsetup[946]: Set cipher aes, mode xts-plain64, key size 512 bits for device /dev/disk/by-uuid/ee6cb58e-9c4e-4a7a-ac65-4e89c68c0354.
oct 25 12:31:19 host systemd-cryptsetup[945]: Set cipher aes, mode xts-plain64, key size 512 bits for device /dev/disk/by-uuid/e00e47f2-fda9-4c32-865f-d7d74501560d.
oct 25 12:31:19 host systemd-cryptsetup[944]: Set cipher aes, mode xts-plain64, key size 512 bits for device /dev/disk/by-diskseq/1-part3.
oct 25 12:31:21 host systemd[1]: Finished Cryptography Setup for luks-e00e47f2-fda9-4c32-865f-d7d74501560d.
oct 25 12:31:22 host systemd-cryptsetup[944]: Cannot use device /dev/disk/by-diskseq/1-part3 which is in use (already mapped or mounted).
oct 25 12:31:22 host systemd-cryptsetup[944]: Failed to activate with specified passphrase: Device or resource busy
oct 25 12:31:22 host systemd[1]: systemd-cryptsetup@home.service: Main process exited, code=exited, status=1/FAILURE
oct 25 12:31:22 host systemd[1]: systemd-cryptsetup@home.service: Failed with result 'exit-code'.
oct 25 12:31:22 host systemd[1]: Failed to start Cryptography Setup for home.
oct 25 12:31:22 host systemd[1]: systemd-cryptsetup@home.service: Consumed 4.030s CPU time, 1G memory peak.
oct 25 12:31:23 host systemd[1]: Finished Cryptography Setup for luks-ee6cb58e-9c4e-4a7a-ac65-4e89c68c0354.
As you may see, systemd tries to open home as home
and as luks-e00e47f2-fda9-4c32-865f-d7d74501560d
, and fails since only it can be opened only once. How can I prevent sytemd-cryptsetup@home.service of running or instruct systemd so that it does run two processes to open home?
BTW, not sure if the booting failure is directly because of this or an indirect consequence (very new system here).