Custom kernel patches
is there a way to use custom .patch files for the kernel in the bazzite-gnome-nvidia image?
context:
There is a dkms patch required to make my hp laptop speakers work: https://github.com/xoocoon/hp-15-ew0xxx-snd-fix, after some investigation I discovered that dkms isn't supported by rpm-ostree, and that I would have to use akmods.
Is there a guide or example on how to patch existing kernel files with akmod or a simplier way to do this?
Would this process cause any problem in case I want to use the nvidia image?
5 Replies
You won't be able to with OCI images without forking akmod (We would accept a patch like this upstream) and then installing it in a custom fork
oh you mean forking the bazzite image?
The problem with accepting the patch in upstream is that it's potentially dangerous as described in the repo, the patch was submitted to the mainline kernel but it was rejected for that reason.
akmods is just a builder, what you install from it is optional
we're fine with dangerous ak mods in there as long as they're properly warned against
the fork of bazzite is just to preinstall it
I see, then it would be great if I could contribute to the akmod file.
It's there an example .spec file I could follow?
Yep, give me a bit and I'll outline it all for ya
always happy to have more people contrib there
and then I can help you with a self-updating bazzite fork