Thread (3 messages) 3 messages, 2 authors, 2020-12-18

lspci: Unable to load libkmod resources: error -12

From: Joe Buehler <hidden>
Date: 2020-12-10 23:15:19

When running lspci -v on Ubuntu 20.40, I get the error message:

lspci: Unable to load libkmod resources: error -12

I tracked this down to a possible libkmod issue.  The kernel I am using
has an empty modules.builtin.aliases.bin file (modules.builtin.aliases
does not exist).

kmod_load_resources() doesn't like this.  It calls index_mm_open() which
checks the file size, sees that it is less than sizeof(hdr), error
terminates, causing kmod_load_resources() to return -ENOMEM.

kmod version 27 as shipped with ubuntu 20.04

Please copy me on any responses, I am not on this list.

Joe Buehler
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help