Skip to content

add !tpm module - #194

Merged
picodotdev merged 1 commit into
picodotdev:masterfrom
MauroSoli:patch-1
Apr 6, 2022
Merged

picodotdev merged 1 commit into
picodotdev:masterfrom
MauroSoli:patch-1

Conversation

@MauroSoli

Copy link
Copy Markdown
Contributor

No description provided.

@picodotdev

picodotdev commented Mar 13, 2022 •

Copy link
Copy Markdown
Owner

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

@MauroSoli

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

2 participants