[Top][All Lists]

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

Variable "chosen" not being set to the last entry booted

From: Roger Cruz
Subject: Variable "chosen" not being set to the last entry booted
Date: Wed, 20 Jul 2011 11:27:43 -0700 (PDT)

I was using grub2-1.97~beta4 and had a grub.cfg file which contains

menuentry "              Windows " {
    save_env saved_entry
    set root=NvDisk1
    chainloader +1

After upgrading to grub2-1.99~rc1-13ubuntu3 and that stanza no longer works correctly.  "saved_entry" is being saved as an empty string and not the Windows entry selected.  I can confirm that save_env is indeed working because when I replace  "saved_entry=${chosen}" with " saved_entry=1", the entry number 1 is indeed the one to be booted on the next reboot and it is also the one written in the environment file.

Can anyone confirm any problems in this area?

Roger R. Cruz

reply via email to

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