Hi
I recently reinstalled Fedora 43 KDE, encrypting the boot with luks2. As before, and as with the last few versions, luks did not work with proprietary nvidia drivers (it works with nouveau). I added nodules to initramfs and then it started working. After enabling the testing repo, kernel 6.19.6 did not load the modules and dracut displayed a lack of kernel modules. Sometimes all of them and sometimes some of them (with the premiere version of all of them). After checking the module files and calling akmods again, akmods sent me error message, that some of modules (or RPM’s i don’t know) building failded.
And I don’t know that nvidia kernel modules in initramfs colide with akmods compilation and building process, or maybe combination of kernel 6.19.6 and propriatary drivers itself is broken. Has anyone had a problem with this kernel with nvidia drivers on an unencrypted drive where the modules are not part of initramfs? If that were the case, at least the issue would be clear.
But if it really is an initramfs and dracut problem, then maybe there is a way to either call dracut differently, or maybe the module could be outside of initramfs but still load before LUKS. I can’t test this with other kernel becouse repo have only release kernel, current kernel andntesting kernel.
Maybe distro-hopping is the solution? Maybe openSUSE if I don’t succeed with Fedora.
With regard to akmods build failing, execute ls -al /var/cache/akmods/nvidia/*failed*.log and if you have any which match that pattern, post the last 40 or so lines from it (tail -n 40 will assist with this).
That log will tell you why the build failed or whether there was a problem applying it to the initial ram filesystem.
Ok. My logs from akmods (i tried akmods --rebuild and it’s also failed:
2026/03/09 08:23:31 akmodsbuild: + export FCFLAGS
2026/03/09 08:23:31 akmodsbuild: + VALAFLAGS=-g
2026/03/09 08:23:31 akmodsbuild: + export VALAFLAGS
2026/03/09 08:23:31 akmodsbuild: + RUSTFLAGS=‘-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn’
2026/03/09 08:23:31 akmodsbuild: + export RUSTFLAGS
2026/03/09 08:23:31 akmodsbuild: + LDFLAGS='-Wl,-z,relro -Wl,–as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,–build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ’
2026/03/09 08:23:31 akmodsbuild: + export LDFLAGS
2026/03/09 08:23:31 akmodsbuild: + LT_SYS_LIBRARY_PATH=/usr/lib64:
2026/03/09 08:23:31 akmodsbuild: + export LT_SYS_LIBRARY_PATH
2026/03/09 08:23:31 akmodsbuild: + CC=gcc
2026/03/09 08:23:31 akmodsbuild: + export CC
2026/03/09 08:23:31 akmodsbuild: + CXX=g++
2026/03/09 08:23:31 akmodsbuild: + export CXX
2026/03/09 08:23:31 akmodsbuild: + cd nvidia-kmod-580.126.18
2026/03/09 08:23:31 akmodsbuild: + for kernel_version in 6.19.6-200.fc43.x86_64___/usr/src/kernels/6.19.6-200.fc43.x86_64
2026/03/09 08:23:31 akmodsbuild: + mkdir -p /tmp/akmodsbuild.2wxHEMJd/BUILD/nvidia-kmod-580.126.18-build/BUILDROOT//lib/modules//6.19.6-200.fc43.x86_64//extra/nvidia//
2026/03/09 08:23:31 akmodsbuild: + install -D -m 0755 _kmod_build_6.19.6-200.fc43.x86_64/nvidia-drm.ko _kmod_build_6.19.6-200.fc43.x86_64/nvidia-modeset.ko _kmod_build_6.19.6-200.fc43.x86_64/nvidia-peermem.ko _kmod_build_6.19.6-200.fc43.x86_64/nvidia-uvm.ko _kmod_build_6.19.6-200.fc43.x86_64/nvidia.ko /tmp/akmodsbuild.2wxHEMJd/BUILD/nvidia-kmod-580.126.18-build/BUILDROOT//lib/modules//6.19.6-200.fc43.x86_64//extra/nvidia//
2026/03/09 08:23:31 akmodsbuild: + /usr/lib/rpm/check-buildroot
2026/03/09 08:23:31 akmodsbuild: + /usr/lib/rpm/redhat/brp-ldconfig
2026/03/09 08:23:31 akmodsbuild: + /usr/lib/rpm/brp-compress
2026/03/09 08:23:31 akmodsbuild: + /usr/lib/rpm/brp-strip /usr/bin/strip
2026/03/09 08:23:31 akmodsbuild: + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
2026/03/09 08:23:31 akmodsbuild: + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip
2026/03/09 08:23:31 akmodsbuild: + /usr/lib/rpm/check-rpaths
2026/03/09 08:23:31 akmodsbuild: + /usr/lib/rpm/redhat/brp-mangle-shebangs
2026/03/09 08:23:31 akmodsbuild: + /usr/lib/rpm/brp-remove-la-files
2026/03/09 08:23:31 akmodsbuild: + /usr/lib/rpm/redhat/brp-python-rpm-in-distinfo
2026/03/09 08:23:31 akmodsbuild: + env /usr/lib/rpm/redhat/brp-python-bytecompile ‘’ 1 0 -j12
2026/03/09 08:23:31 akmodsbuild: + /usr/lib/rpm/redhat/brp-python-hardlink
2026/03/09 08:23:31 akmodsbuild: + /usr/bin/add-determinism --brp -j12 /tmp/akmodsbuild.2wxHEMJd/BUILD/nvidia-kmod-580.126.18-build/BUILDROOT
2026/03/09 08:23:31 akmodsbuild: Scanned 6 directories and 5 files,
2026/03/09 08:23:31 akmodsbuild: processed 0 inodes,
2026/03/09 08:23:31 akmodsbuild: 0 modified (0 replaced + 0 rewritten),
2026/03/09 08:23:31 akmodsbuild: 0 unsupported format, 0 errors
2026/03/09 08:23:31 akmodsbuild: + ‘[’ 1 -eq 1 ‘]’
2026/03/09 08:23:31 akmodsbuild: + ‘[’ -x /usr/lib/rpm/brp-kmodsign ‘]’
2026/03/09 08:23:31 akmodsbuild: + ‘[’ -e /etc/pki/akmods/private/private_key.priv ‘]’
2026/03/09 08:23:31 akmodsbuild: + ‘[’ -e /etc/pki/akmods/certs/public_key.der ‘]’
2026/03/09 08:23:31 akmodsbuild: + /usr/lib/rpm/brp-kmodsign /etc/pki/akmods/private/private_key.priv /etc/pki/akmods/certs/public_key.der /tmp/akmodsbuild.2wxHEMJd/BUILD/nvidia-kmod-580.126.18-build/BUILDROOT/lib/modules/6.19.6-200.fc43.x86_64/extra/nvidia/ /usr/src/kernels/6.19.6-200.fc43.x86_64
2026/03/09 08:23:31 akmodsbuild: At main.c:174:
2026/03/09 08:23:31 akmodsbuild: - SSL error:1E08010C:DECODER routines::unsupported: crypto/encode_decode/decoder_lib.c:102
2026/03/09 08:23:31 akmodsbuild: sign-file: /etc/pki/akmods/private/private_key.priv
2026/03/09 08:23:31 akmodsbuild: At main.c:174:
2026/03/09 08:23:31 akmodsbuild: - SSL error:1E08010C:DECODER routines::unsupported: crypto/encode_decode/decoder_lib.c:102
2026/03/09 08:23:31 akmodsbuild: sign-file: /etc/pki/akmods/private/private_key.priv
2026/03/09 08:23:31 akmodsbuild: At main.c:174:
2026/03/09 08:23:31 akmodsbuild: - SSL error:1E08010C:DECODER routines::unsupported: crypto/encode_decode/decoder_lib.c:102
2026/03/09 08:23:31 akmodsbuild: sign-file: /etc/pki/akmods/private/private_key.priv
2026/03/09 08:23:31 akmodsbuild: At main.c:174:
2026/03/09 08:23:31 akmodsbuild: - SSL error:1E08010C:DECODER routines::unsupported: crypto/encode_decode/decoder_lib.c:102
2026/03/09 08:23:31 akmodsbuild: sign-file: /etc/pki/akmods/private/private_key.priv
2026/03/09 08:23:31 akmodsbuild: At main.c:174:
2026/03/09 08:23:31 akmodsbuild: - SSL error:1E08010C:DECODER routines::unsupported: crypto/encode_decode/decoder_lib.c:102
2026/03/09 08:23:31 akmodsbuild: sign-file: /etc/pki/akmods/private/private_key.priv
2026/03/09 08:23:31 akmodsbuild: /usr/lib/rpm/brp-kmodsign: line 40: warning: command substitution: ignored null byte in input
2026/03/09 08:23:31 akmodsbuild: brp-kmodsign: modules are unsigned!
2026/03/09 08:23:31 akmodsbuild: błąd: Błędny stan wyjścia z /var/tmp/rpm-tmp.RSc5t9 (%install)
2026/03/09 08:23:31 akmodsbuild:
2026/03/09 08:23:31 akmodsbuild: Błędy budowania pakietu RPM:
2026/03/09 08:23:31 akmodsbuild: Błędny stan wyjścia z /var/tmp/rpm-tmp.RSc5t9 (%install)
2026/03/09 08:23:31 akmodsbuild:
2026/03/09 08:23:36 akmods: Building rpms failed; see /var/cache/akmods/nvidia/580.126.18-1-for-6.19.6-200.fc43.x86_64.failed.log for details
Looks like there’s an issue with the keys you have installed on your machine - have you followed these instructions
You don’t really need to add the nvidia drivers to the initramfs.
There is a much simpler solution see:
Simpledrm works with nouveau but not with propriatary drivers (for me at least). Simpledrm luks password screen works for around 0,5 second and again blackscreen. Maybe propriatary drivers kill simpledrm. I don’t know. For this half second luks screen is big (I have 4k monitor and resolution scalling works for that half second so I know that this is simpledrm). I was halfway through with the drivers in initramfs. The question is why akmods became completely unable to build anything just when it started working. Using simpledrm would probably be much more elegant, but the question is what needs to be done to make it work. If I wanted to use nouveau, I wouldn’t need simpledrm, and it only works with nouveau.
Ok. I have idea. I cam manually call sudo dracut --add-drivers “nvidia nvidia-uvm nvidia-drm nvidia-modeset” --force --regenerate-all after akmods building process and it works.
I have no idea what will happen if I try to update Fedora to version 44. If the offline system upgrade uses the old kernel, I’ll have to inject the modules manually again and run the system upgrade with the injected modules, and then use the live ISO to manually inject the nvidia kernel modules for the new kernel (probably 7.0 r.c.) into initramf. Alternatively, I can run chroot from the live iso and update via distro-sync --releasever=44 if possible, or do it live and hope for not breaking system during update.
All works but if you have any tweaks, scripts, ojections that it is very bad idea you can post it. But if any other user have this problem, that’s some kind of solution. If I have any scripts, I can put them here too.
P.s. it’s all in 3/4 translated via deepl and 1/4 by myself