-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrate
TPM2
for encryption of writable persistent partitions (#62)
* fix: fix repart functionality * feat: add support for tpm flag * feat: add tpm2 encryption support for writable partitions * fix: prevent upload of .DS_Store file on MacOS * feat: enable decryption and mounting of luks volumes * fix: create `tss` serviceuser during boot * feat: use PCR values 7 and 11 * ref: remove .gitignore file * fix: make linter happy... * fix: distribute weight equally between multiple partitions * fix: don't override crypttab to allow decryption of mulitple partitions * fix: uncomment service requirement
- Loading branch information
Showing
4 changed files
with
68 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,8 @@ Before=initrd-root-device.target systemd-fsck-root.service | |
[Service] | ||
ExecStart= | ||
ExecStart=/usr/bin/systemd-repart --root=/ --factory-reset=yes --dry-run=no $dev_path | ||
ExecStart=/usr/bin/systemd-repart --root=/ --factory-reset=yes --dry-run=no --tpm2-device=auto --tpm2-pcrs=7+11 $dev_path | ||
ExecStartPost=/usr/bin/udevadm settle | ||
EOF | ||
|
||
mkdir -p "$target/etc/systemd/system/[email protected]" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters