Skip to content

dkms_common.postinst.in supports passing ARCH while dkms_autoinstaller.in does not #501

@kinghrothgar

Description

@kinghrothgar

I am on the latest proxmox (debian), and the package arch does not match the actual kernel arch (amd64 vs x86_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:

$ dkms status
realtek-r8152/2.19.2, 6.8.12-4-pve, amd64: installed (Original modules exist)

This is because the correct package arch is passed to dkms_common.postinst.in by the realtek-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 for x86_64, resulting in the module not being loaded into the new kernel as it needs a module for amd64:

dkms status
realtek-r8152/2.19.2, 6.8.12-4-pve, amd64: installed (Original modules exist)
realtek-r8152/2.19.2, 6.8.12-9-pve, x86_64: installed (Original modules exist)

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions