add optional clevis-based unlock support in initrd#55
add optional clevis-based unlock support in initrd#55legionus merged 2 commits intoosboot:masterfrom
Conversation
|
@romenskiy2012 Please, add Upstream is https://github.com/latchset/clevis ? |
|
Yes of course. |
|
@romenskiy2012 Why do I need to add This code is very sensitive. If the soname changes, it will simply stop working. Libraries are usually copied via binary dependencies or through |
|
I completely agree with you, I suggest such a less fragile option. |
|
@romenskiy2012 Again, why not Something like that (not tested!): Your manual path traversal will not work on ubuntu. |
Add a new clevis feature that installs the tools and files required for TPM2-backed LUKS unlock in initrd. The feature is optional and is enabled explicitly through FEATURES. Signed-off-by: Arseniy Romenskiy <romenskiy@altlinux.org>
When no keyfile is available and the volume is not activated, try clevis-based unlock before falling back to interactive passphrase entry. If clevis is unavailable or unlock fails, keep the existing password prompt logic unchanged. Signed-off-by: Arseniy Romenskiy <romenskiy@altlinux.org>
|
Thanks for PUT_FEATURE_LIBS |
|
@romenskiy2012 Thanks! Everything looks good now. But for the record, https://github.com/osboot/make-initrd/wiki/NewFeature#rulesmk and in the |
This PR adds optional clevis support for TPM2-backed LUKS unlock in initrd.
The series introduces a clevis feature and updates the luks handler to try
clevis unlock before falling back to the existing interactive password prompt.
If clevis is not present or unlock fails, the current behavior is preserved.