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

build: install dracut module if plymouth is not available #60

Closed diabonas closed 4 years ago

diabonas commented 4 years ago

Since commit 38ca58575fc7b964e60e30457859020df2ba0fe6 the dracut module works without plymouth as well, so install it whenever dracut is available.

plymouth-tpm2-totp might not be available even if plymouth is installed if tpm2-totp was built on a system without plymouth. Fall back to the version without plymouth in this case, which is guaranteed to exist if the dracut module is installed. In this case the TOTP is not shown in the graphical boot screen, but can be seen after pressing the Esc key.

Also remove dist/initcpio/install/tpm2-totp from the distribution tarball because it is autogenerated from dist/initcpio/install/tpm2-totp.in.

codecov[bot] commented 4 years ago

Codecov Report

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

Impacted file tree graph

@@          Coverage Diff           @@
##           master     #60   +/-   ##
======================================
  Coverage    83.5%   83.5%           
======================================
  Files           4       4           
  Lines         758     758           
======================================
  Hits          633     633           
  Misses        125     125

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 b15fac3...7cee43f. Read the comment docs.