On Saturday 22 May 2021, Kays wrote:
Hello everyone, ...
However I would still like to hear your thoughts about how to better deal with this issue. What are the best practices when dealing with new driver and kernel versions? And when the system is already borked, what to do? Snapper has saved me a couple of times already, but aren't there any other solutions? In particular, I think it should be possible to install an older kernel from the TW repo history, but can I also do this for the NVIDIA driver? I'm not aware of any older version of the driver present in the repos. For me as a newcomes this really is a bit of a mess...
Thank you in advance for your thoughts and help! Joe
You could set multiversion.kernels in /etc/zypp/zypp.conf and keep a kernel that is known to be good. It could be quite an old kernel (one from the last few months). I think something like the following should retain 5.10.3 multiversion.kernels = 5.10.3,latest,latest-1,running In the event of an issue, yast boot manger can be used to set the default boot to be 5.10.3. Then at worst you would have to boot to the old kernel and manually force a reinstall of the nvidia drivers, which can be done with a --force option to zypper or via yast by ticking the nvidia packages for update regardless of them already being installed. You could also preserve a working nvidia driver just in case the lastest are broken. You would then have a totally independent fallback. A process for preserving a driver is simple if it was installed the "hard way", but a preservation process for the driver installed the "easy way" is simple to setup too. For example, you could edit /etc/zypp/repos.d/NVIDIA.repo and set set autorefresh=0 keeppackages=1, Then the packages would then be retained in the cache: /var/cache/zypp/packages/NVIDIA If the cache is currently empty, a forced install could be used to initialise it with the current driver. If you prefer to use yast, Software Management -> Configuration -> Repositories can also be used to toggle these flags whenever necessary. Michael