Συνέχιση της συζήτησης από το Help installing Nvidia hybrid drivers (auto install feature tried already ):
In Garuda ISOs, we use mhwd-live.service, which checks the HW and tries to install the appropriate video drivers, before (or probably during) booting.
This is IMHO extremely dangerous (for the underlying system) for several reasons, if we imply that Garuda (feature complete) ISOs should provide a successful installation and a nice overview experience for the users.
The main reason mhwd exists (at least, I hope we all agree with that), is nvidia GPUs. If there were no nvidia GPUs, there is no reason to use mhwd for video drivers in general (not only for ISOs).
Even if I have tried to master the whole process, I am not sure my conclusions are correct, so please, forgive my mistakes.
A few of the deal-breaking reasons are:
- pacman installs packages, called by mhwd,
- using repos that are quickly gone away from being in sync with ISO's installed packages.
- pacman hooks are executed (or not? I have no idea...), without user interactivity. Would this include running mkinitcpio kernel creation? (I have no idea)
- If there is a mirror server issue, everything fails, or it should, without the user being able to do something for that. I don't think there is an AI to check configured servers availability, other than calamares geo-ip module and chaotic auto-route server, which are not fail-proof IMHO.
- auto-install feature is as good as the code. It is not fail-proof. I have no specific arguments apart from the many reported failures, not knowing the exact reason they occur.
- there may be more, but I can't think of or remember some right now...
- The easiest IMHO is to completely remove mhwd (and proprietary nvidia) from the boot process of ISOs.
Even if we may provide some (maybe only one) ISO with nvidia drivers, for demo or testing cases, we have a strong ground to not care much about nvidia as a demonstration or highlighted option in our ISOs. If there is a proven installation and easy configuration of nvidia video drivers after installation with nouveau, nobody can blame us for not giving away our development efforts in favor of nvidia, since this company has a Linux-unfriendly attitude. On the contrary, this would be an admired (and maybe followed) example from other non-commercial distros as well.
There are no cases that a nvidia machine could not boot and install with nouveau, or I cannot remember any, even with Manjaro (mhwd).
- We can use grub live theme AI to provide booting options for several combinations of video drivers. The current video driver selection menu can be filled with more selections, which can have enabling/disabling respective modules/options, while the ISO system is shipped with all existing video drivers. We might even use a mhwd-live.service-like method to uninstall packages/drivers (which is safer than installing). Now that I think about it (regarding previous comments), it would be maybe safer to include nvidia-related packages in the ISO system pacman package cache .
- We could use udev rules, added to the really capable existing ones, that could do several checks and actions, to make fr..k.ng nvidia work.
- We could create something new, to replace mhwd, using the important and useful scripts and methods that exist already, to build something that we can know and control, according to our needs (of today, not of 2000) and to our developers' capabilities (I would prefer bash, so I can contribute, but whatever that is not bound to only one dev would be preferable IMHO from a single point of failure situation). I already work on such a project, but it's not about myself.
One or a combination of the above could be a future target IMHO.
(Because I have to go out, I stop here. Add your perspectives in the meantime... )