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: fix make distcheck without sudo #44

Closed diabonas closed 5 years ago

diabonas commented 5 years ago

dracutdir is derived using pkg-config, therefore it doesn't respect ${prefix}. Hence make distcheck will try to install to an absolute path instead of the temporary installation directory, which usually fails without root privileges (and is not desired anyway). Fix this by providing distcheck with the default dracutmodulesdir path derived from ${prefix}.