Additional LKM not added after upgrading to Ubuntu 18.04 (maybe be a bug in "libkmod")
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dracut (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Hi, I have reported on Dracut GitHub the following issue https:/
After upgrading to Ubuntu 18.04 (Linuxmint 19) dracut does not add additional drivers.
After a lot of investigation I found a problem into the libkmod.
-------
Here is a sample code to replicate the issue:
-------
#include <libkmod.h>
#include <stdio.h>
#define _cleanup_(x) __attribute_
static inline void kmod_module_
if (*p)
}
#define _cleanup_
static inline void kmod_module_
if (*p)
}
#define _cleanup_
static inline void kmod_unrefp(struct kmod_ctx **p) {
}
#define _cleanup_
int main(int argc, char** argv) {
_cleanup_
_cleanup_
int err;
//char alias[2048] = "cryptd";
char alias[2048] = "ahci cryptd";
char kerneldir[256] = "/lib/modules/
printf("libkmod tester...\n");
ctx = kmod_new(kerneldir, NULL);
err = kmod_module_
if (err < 0) {
return 1;
}
printf("Got list pointer 0x%lx .\n.", (unsigned long)(void *)list);
return 0;
}
-------
And here the script to build and run it:
-------
#!/bin/bash
CUR_DIR=$(dirname $0)
EXE_NAME=
gcc -Wall *.c -lkmod -o ${EXE_NAME} && \
${CUR_DIR}
Regards,
Antonio Petricca
---------------
lsb_release -rd
---------------
Description: Linux Mint 19 Tara
Release: 19
-------
apt-cache policy libkmod2
-------
libkmod2:
Installed: 24-1ubuntu3
Candidate: 24-1ubuntu3
Version table:
*** 24-1ubuntu3 500
500 http://
100 /var/lib/
Sorry, could the admin move my post to the dracut package?