Debian Bug report logs - #606904
grub-common: Mandriva boot record is imported incorrectly from its menu.lst

Package: os-prober; Maintainer for os-prober is Debian Install System Team <debian-boot@lists.debian.org>; Source for os-prober is src:os-prober.

Reported by: Dmitry Mikhirev <mikhirev@gmail.com>

Date: Sun, 12 Dec 2010 21:24:02 UTC

Severity: important

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>:
Bug#606904; Package grub-common. (Sun, 12 Dec 2010 21:24:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Dmitry Mikhirev <mikhirev@gmail.com>:
New Bug report received and forwarded. Copy sent to GRUB Maintainers <pkg-grub-devel@lists.alioth.debian.org>. (Sun, 12 Dec 2010 21:24:05 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Dmitry Mikhirev <mikhirev@gmail.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: grub-common: Mandriva boot record is imported incorrectly from its menu.lst
Date: Mon, 13 Dec 2010 00:21:53 +0300
Package: grub-common
Version: 1.98+20100804-10
Severity: important

I have Mandriva with legacy grub with /boot on /dev/sda and root on /dev/sda3.
In Debian update-grub finds menu.lst and imports entries from it, but it does
not correct partition number for initrd path.

I. e. in Mandriva's menu.lst the entry was

title linux
kernel (hd0,0)/vmlinuz BOOT_IMAGE=linux root=UUID=7dde89cb-75ec-
4be2-9928-2f37e14c6769 resume=UUID=c0555465-1a71-439d-a748-e22cfade80e5 vga=794
initrd (hd0,0)/initrd.img

In Debian's grub.cfg it appears as

menuentry "linux (on /dev/sda3)" {
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos1)'
        search --no-floppy --fs-uuid --set 1792a52b-b419-4a0f-acd0-f18194747dc7
        linux /vmlinuz BOOT_IMAGE=linux root=UUID=7dde89cb-75ec-
4be2-9928-2f37e14c6769 resume=UUID=c0555465-1a71-439d-a748-e22cfade80e5 vga=794
        initrd (hd0,0)/initrd.img
}

As you see, the last line contains partition name in legacy grub format, but it
should be changed to

        initrd (hd0,msdos1)/initrd.img

It seems that the cause is in /etc/grub.d/30_os-prober



-- System Information:
Debian Release: squeeze/sid
  APT prefers testing-proposed-updates
  APT policy: (500, 'testing-proposed-updates'), (500, 'unstable'), (500,
'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=ru_RU.utf8, LC_CTYPE=ru_RU.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages grub-common depends on:
ii  base-files              5.10             Debian base system miscellaneous f
ii  dpkg                    1.15.8.6         Debian package management system
ii  gettext-base            0.18.1.1-3       GNU Internationalization utilities
ii  install-info            4.13a.dfsg.1-6   Manage installed documentation in
ii  libc6                   2.11.2-7         Embedded GNU C Library: Shared lib
ii  libdevmapper1.02.1      2:1.02.48-4      The Linux Kernel Device Mapper use
ii  libfreetype6            2.4.2-2.1        FreeType 2 font engine, shared lib
ii  zlib1g                  1:1.2.3.4.dfsg-3 compression library - runtime

Versions of packages grub-common recommends:
ii  os-prober                     1.41       utility to detect other OSes on a

Versions of packages grub-common suggests:
pn  grub-emu                      <none>     (no description available)
pn  multiboot-doc                 <none>     (no description available)
pn  xorriso                       <none>     (no description available)

-- Configuration Files:
/etc/grub.d/40_custom changed:
exec tail -n +3 $0
menuentry "linux (on /dev/sda3)" {
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos1)'
        search --no-floppy --fs-uuid --set 1792a52b-b419-4a0f-acd0-f18194747dc7
        linux /vmlinuz BOOT_IMAGE=linux root=UUID=7dde89cb-75ec-
4be2-9928-2f37e14c6769 resume=UUID=c0555465-1a71-439d-a748-e22cfade80e5 vga=794
        initrd (hd0,msdos1)/initrd.img
}
menuentry "linux-nonfb (on /dev/sda3)" {
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos1)'
        search --no-floppy --fs-uuid --set 1792a52b-b419-4a0f-acd0-f18194747dc7
        linux /vmlinuz BOOT_IMAGE=linux-nonfb root=UUID=7dde89cb-75ec-
4be2-9928-2f37e14c6769 splash=silent
resume=UUID=c0555465-1a71-439d-a748-e22cfade80e5
        initrd (hd0,msdos1)/initrd.img
}
menuentry "failsafe (on /dev/sda3)" {
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos1)'
        search --no-floppy --fs-uuid --set 1792a52b-b419-4a0f-acd0-f18194747dc7
        linux /vmlinuz BOOT_IMAGE=failsafe root=UUID=7dde89cb-75ec-
4be2-9928-2f37e14c6769 failsafe splash=silent
        initrd (hd0,msdos1)/initrd.img
}
menuentry "desktop 2.6.33.5-2 (on /dev/sda3)" {
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos1)'
        search --no-floppy --fs-uuid --set 1792a52b-b419-4a0f-acd0-f18194747dc7
        linux /vmlinuz-2.6.33.5-desktop-2mnb BOOT_IMAGE=desktop_2.6.33.5-2
root=UUID=7dde89cb-75ec-4be2-9928-2f37e14c6769
resume=UUID=c0555465-1a71-439d-a748-e22cfade80e5 vga=794
        initrd (hd0,msdos1)/initrd-2.6.33.5-desktop-2mnb.img
}
menuentry "desktop 2.6.33.7-1 (on /dev/sda3)" {
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos1)'
        search --no-floppy --fs-uuid --set 1792a52b-b419-4a0f-acd0-f18194747dc7
        linux /vmlinuz-2.6.33.7-desktop-1mnb BOOT_IMAGE=desktop_2.6.33.7-1
root=UUID=7dde89cb-75ec-4be2-9928-2f37e14c6769
resume=UUID=c0555465-1a71-439d-a748-e22cfade80e5 vga=794
        initrd (hd0,msdos1)/initrd-2.6.33.7-desktop-1mnb.img
}
menuentry "desktop 2.6.33.7-2 (on /dev/sda3)" {
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos1)'
        search --no-floppy --fs-uuid --set 1792a52b-b419-4a0f-acd0-f18194747dc7
        linux /vmlinuz-2.6.33.7-desktop-2mnb BOOT_IMAGE=desktop_2.6.33.7-2
root=UUID=7dde89cb-75ec-4be2-9928-2f37e14c6769
resume=UUID=c0555465-1a71-439d-a748-e22cfade80e5 vga=794
        initrd (hd0,msdos1)/initrd-2.6.33.7-desktop-2mnb.img
}



-- no debconf information

*** /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  insmod vbe
  insmod vga
  insmod video_bochs
  insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set 2695d3f2-40ce-4cc4-ac3c-6430bf09ddd1
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=1280x1024
  load_video
  insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set 2695d3f2-40ce-4cc4-ac3c-6430bf09ddd1
set locale_dir=($root)/boot/grub/locale
set lang=ru
insmod gettext
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set 2695d3f2-40ce-4cc4-ac3c-6430bf09ddd1
insmod png
if background_image /usr/share/images/desktop-base/spacefun-grub.png ; then
  set color_normal=light-gray/black
  set color_highlight=white/black
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-amd64' --class debian --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos6)'
	search --no-floppy --fs-uuid --set 2695d3f2-40ce-4cc4-ac3c-6430bf09ddd1
	echo	'Loading Linux 2.6.32-5-amd64 ...'
	linux	/boot/vmlinuz-2.6.32-5-amd64 root=UUID=2695d3f2-40ce-4cc4-ac3c-6430bf09ddd1 ro vga=794 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.32-5-amd64
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos6)'
	search --no-floppy --fs-uuid --set 2695d3f2-40ce-4cc4-ac3c-6430bf09ddd1
	echo	'Loading Linux 2.6.32-5-amd64 ...'
	linux	/boot/vmlinuz-2.6.32-5-amd64 root=UUID=2695d3f2-40ce-4cc4-ac3c-6430bf09ddd1 ro single vga=794
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.32-5-amd64
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos6)'
	search --no-floppy --fs-uuid --set 2695d3f2-40ce-4cc4-ac3c-6430bf09ddd1
	linux16	/boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos6)'
	search --no-floppy --fs-uuid --set 2695d3f2-40ce-4cc4-ac3c-6430bf09ddd1
	linux16	/boot/memtest86+.bin console=ttyS0,115200n8
}
menuentry "Memory test (memtest86+, experimental multiboot)" {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos6)'
	search --no-floppy --fs-uuid --set 2695d3f2-40ce-4cc4-ac3c-6430bf09ddd1
	multiboot	/boot/memtest86+_multiboot.bin
}
menuentry "Memory test (memtest86+, serial console 115200, experimental multiboot)" {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos6)'
	search --no-floppy --fs-uuid --set 2695d3f2-40ce-4cc4-ac3c-6430bf09ddd1
	multiboot	/boot/memtest86+_multiboot.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "linux (on /dev/sda3)" {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set 1792a52b-b419-4a0f-acd0-f18194747dc7
	linux /vmlinuz BOOT_IMAGE=linux root=UUID=7dde89cb-75ec-4be2-9928-2f37e14c6769 resume=UUID=c0555465-1a71-439d-a748-e22cfade80e5 vga=794
	initrd (hd0,0)/initrd.img
}
menuentry "linux-nonfb (on /dev/sda3)" {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set 1792a52b-b419-4a0f-acd0-f18194747dc7
	linux /vmlinuz BOOT_IMAGE=linux-nonfb root=UUID=7dde89cb-75ec-4be2-9928-2f37e14c6769 splash=silent resume=UUID=c0555465-1a71-439d-a748-e22cfade80e5
	initrd (hd0,0)/initrd.img
}
menuentry "failsafe (on /dev/sda3)" {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set 1792a52b-b419-4a0f-acd0-f18194747dc7
	linux /vmlinuz BOOT_IMAGE=failsafe root=UUID=7dde89cb-75ec-4be2-9928-2f37e14c6769 failsafe splash=silent
	initrd (hd0,0)/initrd.img
}
menuentry "desktop 2.6.33.5-2 (on /dev/sda3)" {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set 1792a52b-b419-4a0f-acd0-f18194747dc7
	linux /vmlinuz-2.6.33.5-desktop-2mnb BOOT_IMAGE=desktop_2.6.33.5-2 root=UUID=7dde89cb-75ec-4be2-9928-2f37e14c6769 resume=UUID=c0555465-1a71-439d-a748-e22cfade80e5 vga=794
	initrd (hd0,0)/initrd-2.6.33.5-desktop-2mnb.img
}
menuentry "desktop 2.6.33.7-1 (on /dev/sda3)" {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set 1792a52b-b419-4a0f-acd0-f18194747dc7
	linux /vmlinuz-2.6.33.7-desktop-1mnb BOOT_IMAGE=desktop_2.6.33.7-1 root=UUID=7dde89cb-75ec-4be2-9928-2f37e14c6769 resume=UUID=c0555465-1a71-439d-a748-e22cfade80e5 vga=794
	initrd (hd0,0)/initrd-2.6.33.7-desktop-1mnb.img
}
menuentry "desktop 2.6.33.7-2 (on /dev/sda3)" {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set 1792a52b-b419-4a0f-acd0-f18194747dc7
	linux /vmlinuz-2.6.33.7-desktop-2mnb BOOT_IMAGE=desktop_2.6.33.7-2 root=UUID=7dde89cb-75ec-4be2-9928-2f37e14c6769 resume=UUID=c0555465-1a71-439d-a748-e22cfade80e5 vga=794
	initrd (hd0,0)/initrd-2.6.33.7-desktop-2mnb.img
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
menuentry "linux (on /dev/sda3)" {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set 1792a52b-b419-4a0f-acd0-f18194747dc7
	linux /vmlinuz BOOT_IMAGE=linux root=UUID=7dde89cb-75ec-4be2-9928-2f37e14c6769 resume=UUID=c0555465-1a71-439d-a748-e22cfade80e5 vga=794
	initrd (hd0,msdos1)/initrd.img
}
menuentry "linux-nonfb (on /dev/sda3)" {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set 1792a52b-b419-4a0f-acd0-f18194747dc7
	linux /vmlinuz BOOT_IMAGE=linux-nonfb root=UUID=7dde89cb-75ec-4be2-9928-2f37e14c6769 splash=silent resume=UUID=c0555465-1a71-439d-a748-e22cfade80e5
	initrd (hd0,msdos1)/initrd.img
}
menuentry "failsafe (on /dev/sda3)" {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set 1792a52b-b419-4a0f-acd0-f18194747dc7
	linux /vmlinuz BOOT_IMAGE=failsafe root=UUID=7dde89cb-75ec-4be2-9928-2f37e14c6769 failsafe splash=silent
	initrd (hd0,msdos1)/initrd.img
}
menuentry "desktop 2.6.33.5-2 (on /dev/sda3)" {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set 1792a52b-b419-4a0f-acd0-f18194747dc7
	linux /vmlinuz-2.6.33.5-desktop-2mnb BOOT_IMAGE=desktop_2.6.33.5-2 root=UUID=7dde89cb-75ec-4be2-9928-2f37e14c6769 resume=UUID=c0555465-1a71-439d-a748-e22cfade80e5 vga=794
	initrd (hd0,msdos1)/initrd-2.6.33.5-desktop-2mnb.img
}
menuentry "desktop 2.6.33.7-1 (on /dev/sda3)" {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set 1792a52b-b419-4a0f-acd0-f18194747dc7
	linux /vmlinuz-2.6.33.7-desktop-1mnb BOOT_IMAGE=desktop_2.6.33.7-1 root=UUID=7dde89cb-75ec-4be2-9928-2f37e14c6769 resume=UUID=c0555465-1a71-439d-a748-e22cfade80e5 vga=794
	initrd (hd0,msdos1)/initrd-2.6.33.7-desktop-1mnb.img
}
menuentry "desktop 2.6.33.7-2 (on /dev/sda3)" {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set 1792a52b-b419-4a0f-acd0-f18194747dc7
	linux /vmlinuz-2.6.33.7-desktop-2mnb BOOT_IMAGE=desktop_2.6.33.7-2 root=UUID=7dde89cb-75ec-4be2-9928-2f37e14c6769 resume=UUID=c0555465-1a71-439d-a748-e22cfade80e5 vga=794
	initrd (hd0,msdos1)/initrd-2.6.33.7-desktop-2mnb.img
}
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###




Bug reassigned from package 'grub-common' to 'os-prober'. Request was from phcoder <phcoder@gmail.com> to control@bugs.debian.org. (Sun, 27 Mar 2011 21:27:05 GMT) Full text and rfc822 format available.

Bug No longer marked as found in versions grub2/1.98+20100804-10. Request was from phcoder <phcoder@gmail.com> to control@bugs.debian.org. (Sun, 27 Mar 2011 21:27:05 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Apr 19 14:55:36 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.