-
Notifications
You must be signed in to change notification settings - Fork 160
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
DKMS 3.1.4 breaks the no-autoinstall behaviour and return no functional parameters during compilation. #491
Comments
Please try again with 3.1.5. /etc/dkms/no-autoinstall is not intended to be used by any dkms module. It's an option intended for CI purposes and for the local admin to disable dkms entirely. Where do you get the dkms modules from? Which script manages the AUTOINSTALL=yes setting? |
Please try again with 3.1.5.
I will when distribution will do.
What distribution are you using?
Fedora 40
Please paste the commands you used and full verbatim output showing
the errors you are talking about.
This is in a script to manage Nvidia drivers :
dkms install -m nvidia/xxx.xx -k xxx
In script context it looks like (--force is optional):
$p_dkms install -m $_dkms/$(new_version) -k $KERNEL $force 2>&1
/etc/dkms/no-autoinstall is not intended to be used by any dkms
module. It's an option intended for CI purposes and for the local
admin to disable dkms entirely.
I know. But there no other way to prevent driver module update a boot
time. The only solution I found is to block the entire process and
compiling modules one by one with the AUTOINSTALL=yes set in dkms.conf
of each modules needed.
Where do you get the dkms modules from? Which script manages the
AUTOINSTALL=yes setting?
They come from the Nvidia http repos, the script is Zenvidia available
in github which manage the dkms.conf file creation.
The dkms.conf is in modules source dir.
—
I'll sent the compilation log soon. I need to reinstall 3.1.4 first.
… Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Edit:
Then, where the no-autoinstall file was needed with 3.0.x to accomplish the script process, this is no more needed with the fixed 3.1.5. |
Hi @wildtruc, I guess you are not using the packages provided in the CUDA repository? Because there I've changed substantially the packaging in the CUDA repository for 570, please give it a go on Fedora 41 if you can (as Fedora is not supported). If you prefer a different packaging with both open and closed modules in the one package there's always my private repository which still has Fedora 40 support: |
No, @scaronni, I don't. :) |
If you use So if your script manages the module (with You should also be able to override the |
Really ?
Man pagee in older version said that AUTOINSTALL is "yes", or is not.
Does it changes ?
If effectively AUTOINSTALL could be change to "" instead of suppress it
in the driver dkms conf, this simplify greatly the dkms conf
build/update part of my script.
In fact, when driver are upgraded, the script first remove old drivers
(open, nvidia), add, then build and just install the used one. When
switchinng, it replace the previous driver by new one , depmod, then
rebuild initramfs.
The script could manage very old version of the driver, so I have to
take care a which version of dkms is ued by the distribution.
|
Test done. |
DKMS man page need an update, but I didn't find who is maintaining it. All link for this are welcome.
|
So the intuitive way would be supporting AUTOINSTALL="no" (in addition to an empty value) to disable autoinstall. |
Yes, I think so too.
|
In this exemple, we are talking about Nvidia drivers with both open and proprietary models precompiled in dkms /var/lib.
For this to work, it is needed to install both drivers in different dirs and rename for open version:
To prevent auto install of proprietary driver at kernel update overwriting open-nvidia, the config empty files /etc/dkms/no-autoinstall is mandatory, and the option AUTOINSTALL=yes is set in the dkms conf file of the current used driver and unset in the unused.
DKMS 3.1.4 doesn't recognize or take care of no-autoinstall file and return weird variables values line 'standard_output' during compilation and finally breaks with "fatal error" concluding with a crash of the xserver.
Downgrading to 3.0.13 solved the problem.
The text was updated successfully, but these errors were encountered: