Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initrd does not get updated when installing new nvidia driver #22

Open
throttlemeister opened this issue Nov 7, 2023 · 4 comments
Open

Comments

@throttlemeister
Copy link

Problem:
When installing a new nvidia driver (possibly others as well), the user is dropped to console upon reboot. Dmesg will show NVRM: Api mismatch. This is caused by the driver being of the old version, and the client being the newly updated version.

Cause:
initrd is not automaically updated after install of the nvidia driver. Manually regenerating the initrd by executing dracut --regenerate-all --force and manually copying the new initrd over the the one in /boot/efi/opensuse-tumbleweed/<kernel-version> will fix the problem and allow booting into the GUI once more

Solution:
Update initrd automatically as part of the post-install scripts for systemd-boot when a kernel module is updated. Ie adding kmp-* scripts currently not present under /usr/lib/module-init-tools/kernel-scriptlets may be all that is needed?

@lnussel
Copy link
Member

lnussel commented Nov 21, 2023

yes, kmps are currently not well integrated. You can regnerate the initrd by using sdbootutil add-all-kernels --no-reuse-initrd

@throttlemeister
Copy link
Author

Thanks, that's easier / quiker than dracut --regerenate-all --force and then copying over the original in /boot/efi/opensuse.../ what I was doing until now
.

@TobiPeterG
Copy link
Collaborator

How could handling kmps be improved?

@TobiPeterG
Copy link
Collaborator

should be solved with openSUSE/suse-module-tools#103

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants