-
Notifications
You must be signed in to change notification settings - Fork 198
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
Failed to include akmod to compose #4983
Comments
I run into the same error as you. The problem is as follows:
In my eyes this is not the optimal solution since I would expect rpm-ostree compose handling this as it's done on all other systems as well. This would then allow installation of any other akmod kernel module during compose as well without having to patch it first. |
Here is a fixed RPM that works during |
rpm-ostree will not pull BuildRequires dependencies as those are only installed when the package is built, not on normal installations. |
@travier I'm fine with closing this, but this is not the point. The point is, you define something as |
Ah, I think I understand what you meant now. |
@COM8 As I understand it, on a normal system an akmod specfile basically just ends up listing the src RPM's |
Things are installed on the system if you specify them via This leads to other RPM-builds triggered from within Since I discovered this I'm happily using my own (patched) version of nvidia driver (https://github.com/rpmfusion/nvidia-kmod/blob/master/nvidia-kmod.spec) and it works. |
Thanks for the clarification. I unfortunatly have half a dozen drivers that as of Fedora 41 are all akmods now, so forking them all doesn't quite work for me. So the issue sounds like the rpmdb is being wiped at the wrong time by rpm-ostree. It needs to wait until after all scriptlets have run rather than doing it right after the installs and before the scriptlets. Presumably this same issue could affect other things that use something as late as |
Describe the bug
Different from the ublue way, I am trying to include
akmod-nvidia
during therpm-ostree compose image
step. But I failed with:I believe all those "missing dependencies" are actually present in the system as it should be direct dependency from akmods. It seems that things in
post
step just don't see them.Reproduction steps
*.repo
to a rpm-ostree compose projectrpm-ostree compose image ...
Expected behavior
I was expecting that the akmods could be installed to the image.
Actual behavior
It failed in
akmod-nvidia.post
System details
Additional information
Maybe at the stage of
akmod-nvidia.post
, the whole rpmdb is not ready? Or this usecase will never be supported? Or even if I could workaround the dependency issue there would be more issues behind (as I can think of, theakmod-nvidia.post
will install the newly built kmods as rpm, and I am unsure if this is possible inrpm-ostree
caseThe text was updated successfully, but these errors were encountered: