[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Variable "chosen" not being set to the last entry booted
From: |
Jordan Uggla |
Subject: |
Re: Variable "chosen" not being set to the last entry booted |
Date: |
Wed, 20 Jul 2011 23:24:54 -0700 |
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)