grub2 does not properly deal with seperate boot partition

Bug #516379 reported by Tom Bogue
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: grub2

I set up my computer with a separate boot partition on /dev/sda1 (in the hopes of speeding my boot) mounted as /boot. However, the grub.conf created by update-grub refers to files relative to the root parition (/dev/sda8 on my system). For instance, line 9 states

if [ -s /boot/grub/grubenv ]; then
  have_grubenv=true
  load_env
fi

the problem is, on the boot partition grub2 boots from, the file is properly refered to as /grub/grubenv. Thus grub fails to think it has a grubenv. I should note that grub2 actually properly deals with the partition internally. Or at least if I comment out the if statement, leaving

#if [ -s /boot/grub/grubenv ]; then
  have_grubenv=true
  load_env
#fi

Things work as they should. (at least as far as my default boot entries are concerned). So the problem really lies in /etc/grub.d/00_header, where the if statement is generated. But a similar issue might be in other /etc/grub.d files as well.

I'm running Ubuntu 9.10, and grub2 1.97~beta4-1ubuntu4.1.

ProblemType: Bug
Architecture: i386
Date: Tue Feb 2 20:26:59 2010
DistroRelease: Ubuntu 9.10
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
NonfreeKernelModules: nvidia
Package: grub2 1.97~beta4-1ubuntu4.1
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-17.54-generic
SourcePackage: grub2
Uname: Linux 2.6.31-17-generic i686

Revision history for this message
Tom Bogue (tbogue) wrote :
Revision history for this message
Colin Watson (cjwatson) wrote :

Thanks for your report. We fixed this in Lucid as bug 478035; I hope to get round to backporting that fix to Karmic at some point ...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.