-
Notifications
You must be signed in to change notification settings - Fork 519
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
kmod-5.10-nvidia: fix tmpfilesd configurations #2020
kmod-5.10-nvidia: fix tmpfilesd configurations #2020
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice fix. Is there a check that could be added that would have caught the issue at build time instead of runtime?
I don't think so 😞, we didn't have anything wrong in the configuration file, it just so happened that what we were doing didn't comply anymore with how |
@@ -84,7 +84,8 @@ install -d %{buildroot}%{_cross_unitdir} | |||
install -d %{buildroot}%{_cross_factorydir}%{_cross_sysconfdir}/{drivers,ld.so.conf.d} | |||
|
|||
KERNEL_VERSION=$(cat %{kernel_sources}/include/config/kernel.release) | |||
sed -e "s|__KERNEL_VERSION__|${KERNEL_VERSION}|" %{S:200} > nvidia.conf | |||
sed -e "s|__KERNEL_VERSION__|${KERNEL_VERSION}|" %{S:200} | sed -e "s|__PREFIX__|%{_cross_prefix}|" \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: you should be able to combine both edits in one command:
sed -e "s|__KERNEL_VERSION__|${KERNEL_VERSION}|" %{S:200} | sed -e "s|__PREFIX__|%{_cross_prefix}|" \ | |
sed \ | |
-e "s|__KERNEL_VERSION__|${KERNEL_VERSION}|" %{S:200} \ | |
-e "s|__PREFIX__|%{_cross_prefix}|" \ |
Now the directory to store the NVIDIA kernel module is created using the full path with `PREFIX`, instead of the symliked directory `/lib/modules` Signed-off-by: Arnaldo Garcia Rincon <[email protected]>
6fd3836
to
1225363
Compare
(Fixed nit in spec file) |
Issue number:
N / A
Description of changes:
Testing done:
Launched a host with GPUs and
aws-k8s-1.21-nvidia
, I verified the kernel modules were linked and loaded:Terms of contribution:
By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.