help-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GRUB_DEFAULT=saved with GRUB_SAVEDEFAULT=true doesn't work here


From: Ulf Zibis
Subject: Re: GRUB_DEFAULT=saved with GRUB_SAVEDEFAULT=true doesn't work here
Date: Thu, 21 Oct 2021 17:40:25 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0


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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]