-
Notifications
You must be signed in to change notification settings - Fork 8
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
spec: Iterate over installed kernels #9
base: master
Are you sure you want to change the base?
Conversation
Thanks for working on this!
Isn't openSUSE also an rpm-based distro? I mean we're building rpms here. How is rpm not available then? |
Also do you think it'd be a disadvantage to always use the /lib/modules method? Would be one less code path to maintain |
AFAIK
from what I've noticed, the |
Updated to use the /lib/modules method regardless. |
Without knowing more about it (or checking), Fedora is also using dnf as user-facing tool, similar to openSUSE's zypper. But again, I'm not very familiar with these distros :)
Doesn't seem to fail quietly for me? Of course we could add a |
I don't think adding EDIT: turns out EDIT EDIT: alternatively we could switch to using |
For akmod see openrazer/openrazer#1747, I don't know much about that either but I don't think we can use just that in the short-term. |
Valid, I don't know much here either ^^' I myself use Arch, and I just am reporting issues for friends who switched from Windows as they're not yet used to the whole issue reporting cycle. Always glad to help, but this is for a distro and software I myself don't use :P I do think the current state of this PR should be fine on most systems, however. It will complain about missing headers for dirs that don't contain sources, yes, but it will also install correctly for every other kernel, making the error mostly ignorable for most users. |
I don't think this would change anything there. Just for the post install script it would not fail completely with that, not sure what rpm does if a post-install script exits with exit code 1... And |
As mentioned on openrazer/openrazer#2177
Makes the post transaction hook use rpm to get kernel versions if rpm is available (like on fedora based distros) and falls back to reading dir names in /lib/modules to get the appropriate kernel version string if rpm is not available (like on openSUSE based distros)