grub-devel
[Top][All Lists]
Advanced

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

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


From: Roger Cruz
Subject: Re: Variable "chosen" not being set to the last entry booted
Date: Thu, 21 Jul 2011 06:48:37 -0700 (PDT)

Hi Jordan,

I added the quotes around the variable and it had no effect.  saved_entry is still empty.  As an FYI, I am using a gfxterm.


# Set all the possible modes we want to try from highest to lowest resolutions.
  set gfxmode="1024x768x32;800x600x32;640x480x32;1024x768;800x600;640x480"
  insmod gfxterm

   if terminal_output gfxterm; then true ; else
     terminal gfxterm
  fi


From: Jordan Uggla <address@hidden>
To: The development of GNU GRUB <address@hidden>
Sent: Thursday, July 21, 2011 2:24 AM
Subject: Re: Variable "chosen" not being set to the last entry booted

On Wed, Jul 20, 2011 at 11:27 AM, Roger Cruz <address@hidden> wrote:
> I was using grub2-1.97~beta4 and had a grub.cfg file which contains
> menuentry "              Windows " {
>     saved_entry=${chosen}
>     save_env saved_entry
>     set root=NvDisk1
>     chainloader +1
> }

Grub now behaves more like bash, you need to quote your variables if
they might contain spaces. So you want something like:
saved_entry="$chosen"

--
Jordan Uggla (Jordan_U on irc.freenode.net)

_______________________________________________
Grub-devel mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/grub-devel



reply via email to

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