tpm2-software / tpm2-totp

Attest the trustworthiness of a device against a human using time-based one-time passwords
https://tpm2-software.github.io
BSD 3-Clause "New" or "Revised" License
163 stars 36 forks source link

dist: add initramfs-tools scripts for plymouth-tpm2-totp #50

Closed diabonas closed 5 years ago

diabonas commented 5 years ago

Add scripts for initramfs-tools to display the TOTP during boot on Debian/Ubuntu/Linux Mint/... Since I don't have one of these distributions installed on bare metal, I used an initrd generated in a virtual machine running Debian 10 Buster, so this isn't extremely well tested. I verified that all necessary files are included in the initrd, that the TOTP gets displayed during boot (on my physical machine) and that the rd.tpm2-totp.nvindex kernel command line option works as expected.

Closes: #41

codecov[bot] commented 5 years ago

Codecov Report

Merging #50 into master will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #50   +/-   ##
=======================================
  Coverage   80.38%   80.38%           
=======================================
  Files           5        5           
  Lines         821      821           
=======================================
  Hits          660      660           
  Misses        161      161

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update cf71316...2c411d2. Read the comment docs.