Skip to content

Conversation

@spflaumer
Copy link

On Gentoo, the signing certificate can be obtained from the kernel configuration, which by default is a path relative to it's source directory, causing prepare_mok to pass, as the PWD can be within that source directory while checking the obtained paths, but definitely failing during do_build, once the PWD is the temporary build directory.
This changes the logic to obtain an absolute path to the certificate using readlink -f, instead of assuming that the configured path is absolute.

On Gentoo, the signing certificate can be obtained from the kernel configuration, which by default is a path relative to it's source directory, causing `prepare_mok` to pass, as the PWD can be within that source directory while checking the obtained paths, but definitely failing during `do_build`, once the PWD is the temporary build directory. This changes the logic to obtain an absolute path using `readlink -f`, instead of assuming that the configured path is absolute
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant