summaryrefslogtreecommitdiffstatshomepage
path: root/justfile
diff options
context:
space:
mode:
authorsommerfeld <sommerfeld@sommerfeld.dev>2026-09-30 08:54:59 +0100
committersommerfeld <sommerfeld@sommerfeld.dev>2026-09-30 08:54:59 +0100
commitc1f7133be790a972400ba63ca40f92ed699d216e (patch)
tree12e36f95ff1e87998c1028a6e2c3242cad32aa3a /justfile
parent76db86a22a23ccfed07d6160cfdab4ef60067ef0 (diff)
downloaddotfiles-c1f7133be790a972400ba63ca40f92ed699d216e.tar.gz
dotfiles-c1f7133be790a972400ba63ca40f92ed699d216e.tar.bz2
dotfiles-c1f7133be790a972400ba63ca40f92ed699d216e.zip
Enable signed initrd and NvPCR measurements
Diffstat (limited to 'justfile')
-rw-r--r--justfile15
1 files changed, 15 insertions, 0 deletions
diff --git a/justfile b/justfile
index daeb4f0..1299506 100644
--- a/justfile
+++ b/justfile
@@ -149,6 +149,21 @@ nix-daemon-update: _require-canonical
test:
@python3 -m unittest discover -s tests -v
+# Check the signed UKIs and NvPCR configuration. Pass staged UKIs to omit boot checks.
+[positional-arguments]
+tpm-nvpcr-check +images: _require-host
+ @sudo /usr/bin/python3 scripts/tpm_nvpcr.py "$@"
+
+# Remove only this repo's obsolete zero-byte NvPCR masks after recovery is ready.
+tpm-nvpcr-unmask: _require-host
+ @sudo /usr/bin/python3 scripts/tpm_nvpcr_unmask.py
+
+_require-host:
+ #!/usr/bin/env bash
+ set -eu
+ source just-lib.sh
+ _require_host
+
# ═══════════════════════════════════════════════════════════════════
# Updates
# ═══════════════════════════════════════════════════════════════════