So till recently I ran Mint and decided to try out Kubuntu. After jumping throe some hoops with nvidia drivers and openvpn configuration import I finaly got it to work … well … kind of…
I run 2 nnvmes - one with Linux and the other with Windows and back in Mint I had this script that would restart the pc to a Windows grub option
sudo grub-reboot 1 sudo reboot now
Option 0 is Linux, 1 is Windows. Worked like a charm. But for some reason I cannot get it to work properly - so the script it self works but GRUB keeps this option then memorized for all boots even despite the option 0 being set as default.
grub default used to be 0 but now I used a command to set it to 0 - result of some searching online for solutions. Does not work. Also the grub_recordfail_timeout line had to be set like this otherwise it would have a 30s timeout
grub customizer in kubuntu does not affect these, just the order of options
It was the installation. I installed with LVM (non encrypted) and that seems to brake stuff. I reinstalled with the option of using the entire disk and it works great.
I’m intending to do exactly this (new build, not yet built). Where’s your boot partition? I figure I want a 3 NVMe config - small boot drive, 2 x 2TB system drives for the different OSs. When I’ve tried this in a VM it wouldn’t work - I had to make the Linux drive bootable. Yet to try it on the metal. Thx.
Don’t these two parameters make grub boot whatever you booted last? This might prevent the script from switching.
Also, the grub defaults are now enumerated differently… more like this and based on the menu names… I’m not sure if this is the issue for you, but I ran into this recently and thought it might be related.
GRUB_DEFAULT="Advanced options for Debian GNU/Linux>Debian GNU/Linux, with Linux 5.10.0-13-amd64"
Lastly, since you have several drives that might be bootable, is it possible that you have several installations of grub, each with their own sets of options? You could edit the menu names in /boot/grub/grub.cfg so that you can tell if you are booting the correct grub.