[Bug 820500] Re: update-grub generates illegal directive in grub.cfg

Colin Watson cjwatson at canonical.com
Mon Sep 5 20:08:36 UTC 2011


On Mon, Sep 05, 2011 at 06:50:34PM -0000, traderbam at yahoo.co.uk wrote:
> I was just curious as to where the issue resided. Is the grub.cfg stanza
> syntax erroneous or is it correct and some downstream function at fault?

The syntax was wrong.  It was produced because Ubuntu prefers to run
without /boot/grub/device.map, which is an upstream goal but not one
that's generally enabled by default as yet.  We have a patch to improve
behaviour in that situation, but at some point when merging a new
upstream release I missed a new situation that needed to be handled.

So it's not really possible to say either that it was an upstream bug or
an Ubuntu-specific bug in this case; it was a bit of both.

Either way, it wasn't terribly worrisome because the following 'search'
command generally finds the correct device by UUID, and the 'set root='
line is only a fallback mechanism.  Still, it was untidy and confused
people, so I wanted to clean it up anyway.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/820500

Title:
  update-grub generates illegal directive in grub.cfg

Status in “grub2” package in Ubuntu:
  Fix Released

Bug description:
  Grub 1.99 in Ubuntu 11.04 32-bit desktop. "update-grub" produces this
  stanza in grub.cfg. The set root line is illegal - presumably it
  should be "set root='(hd0,1)'

  menuentry 'Ubuntu, with Linux 2.6.38-8-generic' --class ubuntu --class gnu-linux --class gnu --class os {
      recordfail
      set gfxpayload=$linux_gfx_mode
      insmod part_msdos
      insmod ext2
      set root='(/dev/sda,msdos1)'
      search --no-floppy --fs-uuid --set=root cb4ea337-c67e-4d75-b9fc-7ef2dc864fd0
      linux    /vmlinuz-2.6.38-8-generic root=UUID=54d78a76-aabc-4886-82a0-7019e8ae731d ro   quiet splash vt.handoff=7
      initrd    /initrd.img-2.6.38-8-generic
  }

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/820500/+subscriptions




More information about the foundations-bugs mailing list