Repository navigation
|
Hi, I recently installed Debian using the default (upstream) installer, and I've noticed that the disk decryption process at boot takes a significant amount of time — around 1–2 minutes. Based on this post it seems the issue might be due to the entire system — including /boot — being encrypted. 🙊 sudo lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 232.9G 0 disk
├─sda1 8:1 0 300M 0 part /boot/efi
├─sda2 8:2 0 202.6G 0 part
│ └─luks-d080ce8d-... 253:0 0 202.6G 0 crypt /
└─sda3 8:3 0 30G 0 part
└─luks-dc88ad7a-... 253:1 0 30G 0 crypt [SWAP]For comparison, I’ve used full disk encryption with Fedora and EndeavourOS, and in both cases, the decryption process was significantly faster. Just a couple seconds. Does this installer use a different volume layout that avoids this slow decryption issue? Thanks in advance! 🧁 |
Replies: 1 comment 1 reply
|
I think the slow decryption is caused by grub. It is not really optimized for encryption algorithms and so takes a very long time to unlock the encrypted /root, read the kernel and initrd. The opinionated installer completely bypasses the issue. The kernel and initrd (or UKI, which is the 2 combined) are stored unencrypted in the UEFI system partition. The UEFI firmware reads them, boots the linux kernel and the kernel is doing the LUKS decryption. |
I think the slow decryption is caused by grub. It is not really optimized for encryption algorithms and so takes a very long time to unlock the encrypted /root, read the kernel and initrd.
The opinionated installer completely bypasses the issue. The kernel and initrd (or UKI, which is the 2 combined) are stored unencrypted in the UEFI system partition. The UEFI firmware reads them, boots the linux kernel and the kernel is doing the LUKS decryption.