-
Notifications
You must be signed in to change notification settings - Fork 165
dkms_common.postinst.in supports passing ARCH while dkms_autoinstaller.in does not #501
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
Comments
@anbe42 can you please have a look at this? I'm not sure I can help where with the Debian specifics. Thanks! |
@kinghrothgar Please try the dkms-test-dkms package. Does this behave correctly, i.e. does it build for the correct architecture in your two scenarios? |
@anbe42 that package builds for the wrong arch also on package install, not just on kernel update. The
I verified this on both the latest proxmox and debian stables using the |
What does I just tried in a minimal Debian/sid amd64 chroot:
So the first module gets built by common.postinst, the second by kernel_postinst.d/dkms.
Makes no difference. Then I tried
At least for this trivial module, the -a argument is irrelevant. |
Did you actually experience module loading issues? If I think the correct KERNEL ARCH value is BTW: Shipping something in /tmp in a .deb package is insane. Take a look at |
None of that shit is mine :/ It's a repository created by the company who made my USB NIC that is definitely just a hacked together fork of a fork. Once I understand all this better, I'm gonna make my own fresh repo and ditch that one. I will verify soon in a fresh test environment again now that I understand everything better and how to test it, but I believe when it was built for |
I am on the latest proxmox (debian), and the package arch does not match the actual kernel arch (
amd64
vsx86_64
).I am installing the latest available dkms and dh-dkms packages (3.1.5-2). When I install build and install a dkms package (https://github.com/wisdpi/wp-ut5_dkms,
realtek-r8152-dkms
), the dkms modules for the correct arch (amd64
) are built:This is because the correct package arch is passed to
dkms_common.postinst.in
by therealtek-r8152-dkms
's postinst script.However, when a new kernel is installed,
-a amd64
is not passed to dkms in the resulting in the module being built forx86_64
, resulting in the module not being loaded into the new kernel as it needs a module foramd64
:I am not sure if something needs to be changed here or at the debian package level, but as far as I can tell as is, I can not get my dkms package to automatically build the correct arch automatically on kernel upgrade.
The text was updated successfully, but these errors were encountered: