Am 17.10.21 um 08:57 schrieb Andrei Borzenkov:
On 16.10.2021 20:51, Ulf Zibis wrote:
Yes, this makes sense, why the timeout doesn't work as expected. Thanks
for your hint.
But it doesn't explain, why the saved default menu coḿes not in use.
I suspect, if you have noticed my alternative grub.cfg far below. Please
also have a look ...
I am not a sorcerer. At the very least show content of grubenv in both
primary partition and rhis one.
The primary one shows:
# GRUB Environment Block
recordfail=1
saved_entry=Menü von Ubuntu-32 18.04 auf
/dev/sda9>gnulinux-simple-ec7ee724-6bed-4ee0-8056-8ecf44bb46b9
####################################...
But this file is 4 weeks old, so currently seems not in use.
With nothing chosen, the secondary one on /dev/sda9 shows:
# GRUB Environment Block
saved_entry=Menü von Ubuntu-32 18.04 auf
/dev/sda9>gnulinux-simple-ec7ee724-6bed-4ee0-8056-8ecf44bb46b9
####################################...
This is menu 0 in /dev/sda9/boot/grub/grub.cfg
If I have chosen submenu 1 + menu 0 the secondary one on /dev/sda9 shows:
# GRUB Environment Block
saved_entry=Menü von Ubuntu-32 18.04 auf
/dev/sda9>gnulinux-advanced-ec7ee724-6bed-4ee0-8056-8ecf44bb46b9>gnulinux-4.15.0-161-generic-advanced-ec7ee724-6bed-4ee0-8056-8ecf44bb46b9
####################################...
This is submenu 1 + menu 0 in /dev/sda9/boot/grub/grub.cfg
If I have chosen menu 3 the secondary one on /dev/sda9 shows:
# GRUB Environment Block
saved_entry=Menü von Ubuntu-32 18.04 auf
/dev/sda9>osprober-gnulinux-simple-944662da-df21-471e-b041-082090aaa22e
###########################...
This is menu 3 in /dev/sda9/boot/grub/grub.cfg
So the entries in /dev/sda9/boot/grub/grub.cfg are correct in any 3 cases.
But always menu 0 from /dev/sda9/boot/grub/grub.cfg becomes executed after
reboot.
I guess, the problem could be, that I include another menu in a top level menu.
So I will try to work with submenu logic.
Check environment variables during boot
- are they set as you expect them?
How can I display variables in grub screen, before Linux is booted?
Thanks for your hints,
-Ulf