update-grub makes grub2 point on an incorrect UUID

Bug #1180685 reported by Arbiel Perlacremaz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Hi

'lsb_release -rd'
Description: Ubuntu 12.04.2 LTS
Release: 12.04

'apt-cache policy pkgname'
N: Impossible de trouver le paquet pkgname

The bug I want to report is very similar to bug #442631, maybe even the same bug. I however report the present bug as, to my understanding, bug #442631 has not been cleared.

Here is my partitions block id's

remi@remi-Vostro-3550:~$ sudo blkid
[sudo] password for remi:
/dev/sda10: LABEL="PASSERELLEM-t" UUID="6272-45BA" TYPE="vfat"
/dev/sda11: LABEL="maisonnette" UUID="dea2a123-c985-4a5c-bc98-975c6bd8386b" TYPE="ext4"
/dev/sda2: LABEL="OS" UUID="AC7C4EC27C4E86D4" TYPE="ntfs"
/dev/sda5: LABEL="xubuntu" UUID="5193ea50-93a3-41f0-9e40-acd7c80a0877" TYPE="ext4"
/dev/sda6: LABEL="ciel_remi" UUID="498F2C6F49CED050" TYPE="ntfs"
/dev/sda9: LABEL="Archives" UUID="5ecd6806-5db8-4670-a2fd-079df82cf0d6" TYPE="ext4"
/dev/sda1: LABEL="Data" UUID="3ee2811f-d984-4ff4-9698-36f083fecda1" TYPE="ext4"
/dev/sda4: LABEL="swap" UUID="857dda1a-4d1f-4e71-bd5d-d6c96e8032c6" TYPE="swap"
/dev/sda7: LABEL="Pingolin" UUID="bedf892b-d69d-45ba-a16c-59b32a8e031c" TYPE="ext4"
/dev/sda8: LABEL="Multimedia" UUID="3b5a9083-e27a-4f2f-917d-56945ff7fd4e" TYPE="ext4"
/dev/sda12: LABEL="boot" UUID="1022a339-49dc-41fd-bc26-a8cb207dcb82" TYPE="ext2"
remi@remi-Vostro-3550:~$

I've got a boot partition on /dev/sda12, nammed "boot

Here is a regular menuentry to boot to Ubuntu 12.04 Precise Pingolin on /dev/sda7

menuentry 'Ubuntu, avec Linux 3.2.0-41-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os {
 recordfail
 gfxmode $linux_gfx_mode
 insmod gzio
 insmod part_msdos
 insmod ext2
 set root='(hd0,msdos12)'
 search --no-floppy --fs-uuid --set=root 1022a339-49dc-41fd-bc26-a8cb207dcb82
 linux /vmlinuz-3.2.0-41-generic-pae root=UUID=bedf892b-d69d-45ba-a16c-59b32a8e031c ro quiet splash $vt_handoff
 initrd /initrd.img-3.2.0-41-generic-pae
}

It appears that root is set to /dev/sda12 for looking for the vmlinuz and initrd.img files, and that the linux line refers to Pingolin's UUID to pass the root partition to the kernel.

Here is the wrong menu entry, to boot to xubuntu (also a 12.04 version) on /dev/sda5

menuentry "Ubuntu, avec Linux 3.2.0-41-generic-pae (on /dev/sda5)" --class gnu-linux --class gnu --class os {
 insmod part_msdos
 insmod ext2
 set root='(hd0,msdos12)'
 search --no-floppy --fs-uuid --set=root 1022a339-49dc-41fd-bc26-a8cb207dcb82
 linux /vmlinuz-3.2.0-41-generic-pae root=UUID=bedf892b-d69d-45ba-a16c-59b32a8e031c ro quiet splash $vt_handoff
 initrd /initrd.img-3.2.0-41-generic-pae
}

It appears that root is still correctly set, by the linux line still refers to Pingolin's UUID as the root partition, instead of the xubutu's UUID (5193ea50-93a3-41f0-9e40-acd7c80a0877)

You can find the boot report as it has been created by boot-report at
http://paste.ubuntu.com/5669945/
Beware that the grub.cfg file to be considered is located at line 491

Regards

Arbiel

Revision history for this message
Arbiel Perlacremaz (arbiel-perlacremaz) wrote :

Hi

I run additional tests to find out that the issue is the sharing of the /boot partition with the two systems, Ubuntu and XUbuntu. This sharing mixes up all things as both systems rely on vmlinuz and initrd.img files whose names may be the same, but with different contents.

So, please, drop this bug. The /boot partition, where separated from its root (/), should never be shared with several systems.

This is my mistake.

Arbiel

Phillip Susi (psusi)
Changed in grub2 (Ubuntu):
status: New → Invalid
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.