Woohoo, couldn’t wait for the weekend. And I streamlined it a bit because I found the prospect of remembering all those commands in a text console very daunting. It seemed that “the hard way” (which was actually the easy way) had turned into “the hardest way”.
This little script makes it so simple, works whether kernel-desktop, kernel-default, kernel-whatever:
make a text file called nvidia.sh, give it these contents:
#!/bin/sh
cd /usr/src/linux
make cloneconfig
make prepare
cd /lib/modules/`uname -r`/source/arch/x86/include/
cp -v generated/asm/unistd*.h ./asm/
Make it executable and place it in the directory /root.
Run the normal zypper dup to get the kernel upgrade. Boot and you’ll boot to a console. Log in as root to the console. You should be in directory /root (if not, then go there with cd /root). Run this command
./nvidia.sh
. Done, fixed, no stumbling about in a console.