I have found excellent solution to dual boot configuration selection of default OS to be last saved OS (great for update restarts). Editing and update of grub file went without any problems, but after reboot, right after unchanged grub menu selection
error: Diskfilter writes are not supported
is reported and OS selected in grub menu (or default OS) is booted (not the last saved).
I have Ubuntu 20.04 LTS as default on /dev/sda1 in Linux LVM (Bootable) partition and Windows 10 on separate disk /dev/sdb1 with NTFS/exFAT/HPFS (Bootable) partition. How to make it work as descibed in original post?
sudo nano -B /etc/default/grub
It might be problem related to LVM partition (I do not have RAID) as in this 8 years old bug report. – Josef Švenda Jul 20 '20 at 16:18