Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add !tpm module #194

Merged
merged 1 commit into from
Apr 6, 2022
Merged

add !tpm module #194

merged 1 commit into from
Apr 6, 2022

Conversation

MauroSoli
Copy link
Contributor

No description provided.

@picodotdev
Copy link
Owner

picodotdev commented Mar 13, 2022

Is there a arch linux wiki page where is documented the tpm module and its confiuration as kernel module?

@MauroSoli
Copy link
Contributor Author

Sure: https://wiki.archlinux.org/title/Trusted_Platform_Module

"Alternatively, you can mention your TPM driver inside MODULES() of mkinitcpio.conf" .

Should be great if we added TPM support (the goal could be unlock LUKS system partition).

@picodotdev
Copy link
Owner

I am not sure if it is necessary to use that systemd-cryptenroll commands also so maybe adding the tpm is not enough and not sure if it is really usefull without using secure boot.

@MauroSoli
Copy link
Contributor Author

yes, you're right.
It's recommended to use secure boot. Either systemd-cryptenroll and sbctl commands have to run after first setup (reboot it's required to recorder firmware fingerprint on tpm) , steps are simple:

Enroll secure boot keys

arch-chroot /mnt 'sbctl create-keys; sbctl enroll-keys; sbctl status; sbctl verify'

Enroll luks system key to tpm

systemd-cryptenroll /dev/nvme0n1p1 --tpm2-pcrs=1+7+8 --tpm2-device=auto --wipe-slot=tpm2

But these steps require loading tpm module on kernel.

Thus because of Alis was not born to run scripts after first reboot (at least I think so) it's not relevant to add tpm module on alis.conf, we can add it manually.

@picodotdev picodotdev merged commit f3038ae into picodotdev:master Apr 6, 2022
@picodotdev
Copy link
Owner

I merge the PR to add the tmp module as an example module that can be configured. But I still need to read more guides for secure boot, full disk encryption, sign the kernels and other security related topics, and find a proper way to add this on alis.

@MauroSoli MauroSoli deleted the patch-1 branch April 7, 2022 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants