im-0 / hpsahba

Tool to enable/disable HBA mode on some HP Smart Array controllers
GNU General Public License v2.0
128 stars 45 forks source link

hpsa-dkms doesn't patch kenerl during kernel update #28

Open JiangXL opened 2 years ago

JiangXL commented 2 years ago

The hpsa-dkms doesn't generate hpsa module with hpsa_use_nvram_hba_flag during kernel upgrade. It suggests that the hpsa is not been patched. If I remove hpsa-dkms by dkms remove hpsa-dkms/1.0 --all and patch the kernel again, it works again.

I don't know the reason, but I post here for others who may have similiar case.

Test on: Proxmox 7.2 with kernel PVE 5.15.39-3.

ghost commented 2 years ago

@JiangXL I had the same issue. After looking into the apt logs after the last kernel update, I realized that the header files are not being downloaded prior to the dkms autoinstall hook.

The proxmox team suggests installing the pve-headers metapackage, without specifying a version. It downloads the current kernel headers automatically and I think it should also do so when updating the kernel. We will see if it works on the next kernel update.

I've already implemented the necessary changes in my proxmox-friendly hpsahba fork.

JiangXL commented 2 years ago

Thank for your work, @mashuptwice !