Bug#584540: grub-pc: savedefault not working (grubenv not updating?)

Colin Watson cjwatson at debian.org
Sat Jun 5 10:21:49 UTC 2010


On Fri, Jun 04, 2010 at 11:41:37PM +0100, Colin Watson wrote:
> On Sat, Jun 05, 2010 at 08:22:16AM +1000, Tim Richardson wrote:
> > Attached.
> 
> Thanks.  OK, so the entry definitely isn't getting saved.
> 
> > Anything else fancy? no. It's a one-linux-partition laptop system, dual  
> > boot into windows 7.
> > However, I get an error message "error: file not found" flashed up after  
> > "Welcome to GRUB" and just before the menu loads.
> 
> That's #584426.  I suppose it could be a consequence of that.  Could you
> try upgrading grub-common and grub-pc to 1.98+20100602-2 and seeing if
> this problem persists?

Vladimir spotted something else which might be relevant.  If the problem
persists after upgrading to 1.98+20100602-2, could you also edit
/etc/grub.d/00_header (as root)?  You'll find one line as follows:

  set saved_entry=\${prev_saved_entry}

Change that to:

  set saved_entry="\${prev_saved_entry}"

Then you'll find another line as follows:

    saved_entry=\${chosen}

Change that to:

    saved_entry="\${chosen}"

Then run update-grub as root, and see if that fixes things.

Thanks,

-- 
Colin Watson                                       [cjwatson at debian.org]





More information about the Pkg-grub-devel mailing list