-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
swtpm not found when installed out of PATH #795
Comments
It is worse. I can't even use --tpm for this. If I pass --tpm, it finds |
If you have a patch to fix it, let me know. Otherwise it's really not high priority at the moment. |
To support install paths that are not covered by $PATH, and still allow swtpm_setup and swtpm_localca to find swtpm and swtpm_cert executables, implement find_program() to prepend the install path if only the program name is given and otherwise fall back to g_find_program_in_path(). Resolves: #795 Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
There's a PR now: #796 |
To support install paths that are not covered by $PATH, and still allow swtpm_setup and swtpm_localca to find swtpm and swtpm_cert executables, implement find_program() to prepend the install path if only the program name is given and otherwise fall back to g_find_program_in_path(). Resolves: #795 Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
To support install paths that are not covered by $PATH, and still allow swtpm_setup and swtpm_localca to find swtpm and swtpm_cert executables, implement find_program() to prepend the install path if only the program name is given and otherwise fall back to g_find_program_in_path(). Update the man page stating that swtpm from the installation directory (BINDIR) is tried to be used before one is attempted to be found in the PATH. Resolves: #795 Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Thank you |
I suppose this means that it works for you. |
I didn't test it yet, but thank you for the effort either way |
From what I can see I will have to revert the patch and users will have to set PATH since otherwise the test will pick up /usr/bin/swtpm_cert for example rather than the one in the path. |
If I configure, make and install with
--prefix=<some dir not in the PATH>
, swtpm_setup fails to find the swtpm executable. It is only looking in the $PATH. The only way is to pass the swtpm executable path to the--tpm
switch.I think that it should find swtpm in the configured install location (either instead of or in addition to the $PATH)
The text was updated successfully, but these errors were encountered: