initramfs: Add support for LUK2#152
Conversation
readlink -f is used, so this needs to resolve to the canonicalized path
Verified using Ubuntu 20.04 daily image
This isn't useful for modern laptops, it just pollutes the namespace.
|
@sergio-correia any updates here? |
Sorry for the delay. It looks good to me, but I was going to test it before merging. I will try to get it done today or tomorrow. |
|
@superm1: I tested this on a laptop and a VM and had issues in both cases; while the issues fall out of the scope of this PR itself, which is merely adding support for LUKS2, you may want to investigate them better:
|
So I did my testing using TPM2 (which is the more interesting case to me since TPMs are available very widely but a tang server requires some setup in advance). I hence didn't hit any networking related issues in my testing. If you would be able to do your laptop test with the TPM2 I think you'd have similar success.
Presumably this network card is functional via some kernel module in the rootfs, just missing from initramfs, right? I think you may try to add it explicitly to We might have a bug somewhere initramfs-tools that it didn't pull it on it's own though. Which module is it?
That's a bit odd.
As in successful test with LUKS2? :) |
tpm2 worked here as well, once I had
Yeah, something like this should work, however I tried quickly here and it still did not; I added
Yep. LUKS2 and now tested working with both tang and tpm2 pins. I will merge this PR, thanks! |
I did testing with master on Ubuntu 20.04 daily images and found some lacking aspects for LUKS2. I ported some stuff over from the systemd script to work in the initramfs-tools one.
I confirmed this works properly with FDE on Ubuntu 20.04.