what was the RC of the above command? Was it 5?
Yes, the return code was 5
you could also check the log files in /var/log/dkms for clues
i.e /var/log/post_transaction.log
/var/log/dkms
doesn’t exist, but I can find a post_transaction.log
in /var/lib/dkms/
, which basically outputs the same as manually running dracut in the terminal:
Executing post-transaction command
# command: dracut --regenerate-all --force
dracut[F]: Can't write to /boot/efi/c63ecb94c27f4207aa6884663c007f89/6.14.4-300.fc42.x86_64: Directory /boot/efi/c63ecb94c27f4207aa6884663c007f89/6.14.4-300.fc42.x86_64 does not exist or is not accessible.
dracut[F]: Can't write to /boot/efi/c63ecb94c27f4207aa6884663c007f89/6.14.5-300.fc42.x86_64: Directory /boot/efi/c63ecb94c27f4207aa6884663c007f89/6.14.5-300.fc42.x86_64 does not exist or is not accessible.
dracut[F]: Can't write to /boot/efi/c63ecb94c27f4207aa6884663c007f89/6.14.6-300.fc42.x86_64: Directory /boot/efi/c63ecb94c27f4207aa6884663c007f89/6.14.6-300.fc42.x86_64 does not exist or is not accessible.
dracut[F]: Can't write to /boot/efi/c63ecb94c27f4207aa6884663c007f89/6.14.8-300.fc42.x86_64: Directory /boot/efi/c63ecb94c27f4207aa6884663c007f89/6.14.8-300.fc42.x86_64 does not exist or is not accessible.
dracut[F]: Can't write to /boot/efi/c63ecb94c27f4207aa6884663c007f89/6.14.9-300.fc42.x86_64: Directory /boot/efi/c63ecb94c27f4207aa6884663c007f89/6.14.9-300.fc42.x86_64 does not exist or is not accessible.
# exit code: 5
# elapsed time: 00:00:38
Have you removed the previous version of the dkms module and deleted the old source code in /usr/src before extracting the new version?
Yes I did delete the old sources. When the problem described in this topic happened, I was using the version 0.13 of v4l2loopback. After managing to fix the issue, I tried 0.15 and the same dracut error happened, then I tried the main branch and the same happened, but since I manually ran dracut --regenerate-all --force
I didn’t have problems. So now my /usr/src
shows:
guilherme@fedora:~$ ls /usr/src/
debug kernels v4l2loopback-main vboxhost-7.1.8
find /var/lib/dkms/v4l2loopback/
shows:
/var/lib/dkms/v4l2loopback/
/var/lib/dkms/v4l2loopback/main
/var/lib/dkms/v4l2loopback/main/source
/var/lib/dkms/v4l2loopback/main/6.15.3-200.fc42.x86_64
/var/lib/dkms/v4l2loopback/main/6.15.3-200.fc42.x86_64/x86_64
/var/lib/dkms/v4l2loopback/main/6.15.3-200.fc42.x86_64/x86_64/log
/var/lib/dkms/v4l2loopback/main/6.15.3-200.fc42.x86_64/x86_64/log/auto.conf
/var/lib/dkms/v4l2loopback/main/6.15.3-200.fc42.x86_64/x86_64/log/make.log
/var/lib/dkms/v4l2loopback/main/6.15.3-200.fc42.x86_64/x86_64/module
/var/lib/dkms/v4l2loopback/main/6.15.3-200.fc42.x86_64/x86_64/module/Module.symvers
/var/lib/dkms/v4l2loopback/main/6.15.3-200.fc42.x86_64/x86_64/module/v4l2loopback.ko.xz
/var/lib/dkms/v4l2loopback/original_module
/var/lib/dkms/v4l2loopback/original_module/6.15.3-200.fc42.x86_64
/var/lib/dkms/v4l2loopback/original_module/6.15.3-200.fc42.x86_64/x86_64
/var/lib/dkms/v4l2loopback/original_module/6.15.3-200.fc42.x86_64/x86_64/v4l2loopback.ko.xz
/var/lib/dkms/v4l2loopback/original_module/6.15.3-200.fc42.x86_64/x86_64/v4l2loopback.ko.xz.origin
/var/lib/dkms/v4l2loopback/kernel-6.15.3-200.fc42.x86_64-x86_64
And dkms status shows:
v4l2loopback/main, 6.15.3-200.fc42.x86_64, x86_64: installed (Original modules exist)
ls /lib/modules/
does show stale versions
6.14.11-300.fc42.x86_64 6.14.4-300.fc42.x86_64 6.14.6-300.fc42.x86_64 6.14.9-300.fc42.x86_64
6.14.2-300.fc42.x86_64 6.14.5-300.fc42.x86_64 6.14.8-300.fc42.x86_64 6.15.3-200.fc42.x86_64
The real problem just seems to be dkms failing to run dracut --regenerate-all --force
which is a reported bug 2333757 – initrd is not created if a dkms build fails leaving system boot to fail I think there’s not much I, as a user, can do until that gets fixed other than always manually running dracut --regenerate-all --force
after a kernel upgrade