My bad. I also needed to put the quotes around this one for it to work properly
set default="${saved_entry}"
Thanks for your help Jordan
________________________________
From: Jordan Uggla <[email protected]>
To: The development of GNU GRUB <[email protected]>
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 <[email protected]> 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
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel