Skip to content

feat: add luks-enable-tpm2-autounlock-specified-disk script#485

Open
ion-ize wants to merge 3 commits intoublue-os:mainfrom
ion-ize:patch-1
Open

feat: add luks-enable-tpm2-autounlock-specified-disk script#485
ion-ize wants to merge 3 commits intoublue-os:mainfrom
ion-ize:patch-1

Conversation

@ion-ize
Copy link

@ion-ize ion-ize commented May 16, 2025

The existing script would only enable luks TPM unlock for the root disk, this script will allow any luks encrypted disk to be enabled for TPM auto-unlock.

I am fairly new to scripting so if anything can be improved please please please feel free to let me know or make any changes you see fit!

The main thing I am not certain of being the most ideal is the method of which I am using to get the list of luks disks.

I also figured this would be better handled as a separate script from the existing enable one since that works perfectly for the root drive. This is really only for people who want additional drives encrypted and to also be auto-unlocked with their TPM.

I am also not sure if this is the best place to submit this or not. If there is a better upstream location for this then I can submit it there instead.

The existing script would only enable LUKS TPM unlock for the root disk, this will now allow any LUKS encrypted disk to be enabled for TPM auto-unlock.
@ion-ize ion-ize requested a review from Zeglius as a code owner May 16, 2025 03:33
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. enhancement New feature or request labels May 16, 2025
@ion-ize ion-ize changed the title Create luks-enable-tpm2-autounlock-specified-disk feat: add luks-enable-tpm2-autounlock-specified-disk script May 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant