Bug#686754: update-grub generates wrong grub.cfg

Karsten Malcher debian at dct.mine.nu
Wed Sep 5 10:28:28 UTC 2012


Package: grub2-common
Version: 1.99-22.1
Severity: important

Hello,

this bug seems only effect additional bootable partitions.
At this time i try to copy my primary installation to a SSD.

When i run update-grub my main partition is generated in the grub.cfg correct as

menuentry 'Debian GNU/Linux, mit Linux 3.2.0-3-amd64' --class debian --class gnu-linux --class gnu --class os {
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='(/dev/sda,msdos3)'
	search --no-floppy --fs-uuid --set=root 6bfc15a0-2e9d-4020-9346-9fd52d2696f5
	echo	'Linux 3.2.0-3-amd64 wird geladen 
'
	linux	/boot/vmlinuz-3.2.0-3-amd64 root=UUID=6bfc15a0-2e9d-4020-9346-9fd52d2696f5 ro  quiet
	echo	'Initiale Ramdisk wird geladen 
'
	initrd	/boot/initrd.img-3.2.0-3-amd64
}


But the copy on my SSD is generated as

menuentry "Debian GNU/Linux, mit Linux 3.2.0-3-amd64 (on /dev/sdb1)" --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(/dev/sdb,msdos1)'
	search --no-floppy --fs-uuid --set=root a1135478-503b-4213-86eb-f6011e35b596
	linux /boot/vmlinuz-3.2.0-3-amd64 root=UUID=6bfc15a0-2e9d-4020-9346-9fd52d2696f5 ro quiet
	initrd /boot/initrd.img-3.2.0-3-amd64
}


You can see that the "search" has the correct UUID, but the "linux" the wrong UUID!
So the system is always booted from the harddisk instead of the SSD.
This error should be corrected.

The system is booting correct after manual correction of this error in the grub.cfg.

Regards
Karsten


-- System Information:
Debian Release: wheezy/sid
    APT prefers testing
    APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages grub2-common depends on:
ii  dpkg          1.16.8
ii  grub-common   1.99-22.1
ii  install-info  4.13a.dfsg.1-10

grub2-common recommends no packages.


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: grub.cfg
URL: <http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20120905/47d0e78c/attachment.ksh>


More information about the Pkg-grub-devel mailing list