[Bug 1013007] [NEW] update-grub sets an incorrect root=UUID= in grub.cfg

Simon Reed Xubuntu at S-and-J.co.uk
Thu Jun 14 06:46:14 UTC 2012


Public bug reported:

Whenever I run update-grub, the entries in grub.cfg for one of the
partitions has conflicting UUID entries, like this:

---------------------------
menuentry "Ubuntu, with Linux 3.0.0-21-generic (on /dev/sda8)" --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos8)'
	search --no-floppy --fs-uuid --set=root 78e9d241-98f5-409e-87fa-f69f5d5f0250
	linux /boot/vmlinuz-3.0.0-21-generic root=UUID=fccd57a0-f381-4d59-81b9-d66c8b082d3c ro quiet splash vt.handoff=7
	initrd /boot/initrd.img-3.0.0-21-generic
}
---------------------------

This prevents that partition booting.  If I manually edit the grub.cfg
to make the 'root=UUID=' entry match the '--set=root' entry, then that
partition will boot OK.


I have a number of partitions on this PC thus:

/dev/sda1	U-10.04_64	e30f2494-a833-446b-8b1f-7ffcd7b3a4f9	Ubuntu 10.04
/dev/sda6	U-10.04_32	52f3a7ea-0b25-454f-85f4-01a90c3679e2	Xubuntu 12.04
/dev/sda7	X-11.10_64	fccd57a0-f381-4d59-81b9-d66c8b082d3c	Xubuntu 12.04
/dev/sda8	Backup		78e9d241-98f5-409e-87fa-f69f5d5f0250	Ubuntu 11.10
/dev/sda10	Tarball		c9904aa9-46ef-4750-a965-a902085fe0af	no op sys
/dev/sda9	Mint12		fcc3c63a-7371-48a5-802e-b0411995dd62	Mint 12 Lisa
/dev/sda5	Swap		21460052-7865-401a-86f7-8b37dfb1e402		swap partition used by all the above


This is the output from 'sudo update-grub':

Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.0-25-generic
Found initrd image: /boot/initrd.img-3.2.0-25-generic
Found linux image: /boot/vmlinuz-3.0.0-21-generic
Found initrd image: /boot/initrd.img-3.0.0-21-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Ubuntu 10.04.4 LTS (10.04) on /dev/sda1
Found Ubuntu 12.04 LTS (12.04) on /dev/sda6
Found Ubuntu 11.10 (11.10) on /dev/sda8
Found Linux Mint 12 Lisa (12) on /dev/sda9
done


This problem also occurred in Xubuntu 11.10 and now is occurring in Xubuntu 12.04.


$ lsb_release -rd
Description:	Ubuntu 12.04 LTS
Release:	12.04


$ apt-cache policy grub-pc
grub-pc:
  Installed: 1.99-21ubuntu3.1
  Candidate: 1.99-21ubuntu3.1
  Version table:
 *** 1.99-21ubuntu3.1 0
        500 http://gb.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     1.99-21ubuntu3 0
        500 http://gb.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: grub-pc 1.99-21ubuntu3.1
ProcVersionSignature: Ubuntu 3.2.0-25.40-generic 3.2.18
Uname: Linux 3.2.0-25-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.0.1-0ubuntu8
Architecture: amd64
Date: Thu Jun 14 07:24:22 2012
InstallationMedia: Xubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
ProcEnviron:
 LANGUAGE=en_GB:en
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: grub2
UpgradeStatus: Upgraded to precise on 2012-06-13 (0 days ago)

** Affects: grub2 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug precise

-- 
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/1013007

Title:
  update-grub sets an incorrect root=UUID= in grub.cfg

Status in “grub2” package in Ubuntu:
  New

Bug description:
  Whenever I run update-grub, the entries in grub.cfg for one of the
  partitions has conflicting UUID entries, like this:

  ---------------------------
  menuentry "Ubuntu, with Linux 3.0.0-21-generic (on /dev/sda8)" --class gnu-linux --class gnu --class os {
  	insmod part_msdos
  	insmod ext2
  	set root='(hd0,msdos8)'
  	search --no-floppy --fs-uuid --set=root 78e9d241-98f5-409e-87fa-f69f5d5f0250
  	linux /boot/vmlinuz-3.0.0-21-generic root=UUID=fccd57a0-f381-4d59-81b9-d66c8b082d3c ro quiet splash vt.handoff=7
  	initrd /boot/initrd.img-3.0.0-21-generic
  }
  ---------------------------

  This prevents that partition booting.  If I manually edit the grub.cfg
  to make the 'root=UUID=' entry match the '--set=root' entry, then that
  partition will boot OK.

  
  I have a number of partitions on this PC thus:

  /dev/sda1	U-10.04_64	e30f2494-a833-446b-8b1f-7ffcd7b3a4f9	Ubuntu 10.04
  /dev/sda6	U-10.04_32	52f3a7ea-0b25-454f-85f4-01a90c3679e2	Xubuntu 12.04
  /dev/sda7	X-11.10_64	fccd57a0-f381-4d59-81b9-d66c8b082d3c	Xubuntu 12.04
  /dev/sda8	Backup		78e9d241-98f5-409e-87fa-f69f5d5f0250	Ubuntu 11.10
  /dev/sda10	Tarball		c9904aa9-46ef-4750-a965-a902085fe0af	no op sys
  /dev/sda9	Mint12		fcc3c63a-7371-48a5-802e-b0411995dd62	Mint 12 Lisa
  /dev/sda5	Swap		21460052-7865-401a-86f7-8b37dfb1e402		swap partition used by all the above

  
  This is the output from 'sudo update-grub':

  Generating grub.cfg ...
  Found linux image: /boot/vmlinuz-3.2.0-25-generic
  Found initrd image: /boot/initrd.img-3.2.0-25-generic
  Found linux image: /boot/vmlinuz-3.0.0-21-generic
  Found initrd image: /boot/initrd.img-3.0.0-21-generic
  Found memtest86+ image: /boot/memtest86+.bin
  Found Ubuntu 10.04.4 LTS (10.04) on /dev/sda1
  Found Ubuntu 12.04 LTS (12.04) on /dev/sda6
  Found Ubuntu 11.10 (11.10) on /dev/sda8
  Found Linux Mint 12 Lisa (12) on /dev/sda9
  done

  
  This problem also occurred in Xubuntu 11.10 and now is occurring in Xubuntu 12.04.

  
  $ lsb_release -rd
  Description:	Ubuntu 12.04 LTS
  Release:	12.04

  
  $ apt-cache policy grub-pc
  grub-pc:
    Installed: 1.99-21ubuntu3.1
    Candidate: 1.99-21ubuntu3.1
    Version table:
   *** 1.99-21ubuntu3.1 0
          500 http://gb.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
          100 /var/lib/dpkg/status
       1.99-21ubuntu3 0
          500 http://gb.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages

  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: grub-pc 1.99-21ubuntu3.1
  ProcVersionSignature: Ubuntu 3.2.0-25.40-generic 3.2.18
  Uname: Linux 3.2.0-25-generic x86_64
  NonfreeKernelModules: nvidia
  ApportVersion: 2.0.1-0ubuntu8
  Architecture: amd64
  Date: Thu Jun 14 07:24:22 2012
  InstallationMedia: Xubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
  ProcEnviron:
   LANGUAGE=en_GB:en
   TERM=xterm
   PATH=(custom, no user)
   LANG=en_GB.UTF-8
   SHELL=/bin/bash
  SourcePackage: grub2
  UpgradeStatus: Upgraded to precise on 2012-06-13 (0 days ago)

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




More information about the foundations-bugs mailing list