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.


#
# 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='(/dev/sda,msdos3)'
search --no-floppy --fs-uuid --set=root 6bfc15a0-2e9d-4020-9346-9fd52d2696f5
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  load_video
  insmod gfxterm
  insmod part_msdos
  insmod ext2
  set root='(/dev/sda,msdos3)'
  search --no-floppy --fs-uuid --set=root 6bfc15a0-2e9d-4020-9346-9fd52d2696f5
  set locale_dir=($root)/boot/grub/locale
  set lang=de_DE
  insmod gettext
fi
terminal_output gfxterm
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos3)'
search --no-floppy --fs-uuid --set=root 6bfc15a0-2e9d-4020-9346-9fd52d2696f5
insmod png
if background_image /usr/share/images/desktop-base/joy-grub.png; then
  set color_normal=white/black
  set color_highlight=black/white
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, 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
}
menuentry 'Debian GNU/Linux, mit Linux 3.2.0-3-amd64 (Wiederherstellungsmodus)' 
--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 single 
        echo    'Initiale Ramdisk wird geladen …'
        initrd  /boot/initrd.img-3.2.0-3-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='(/dev/sda,msdos3)'
        search --no-floppy --fs-uuid --set=root 
6bfc15a0-2e9d-4020-9346-9fd52d2696f5
        linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
        insmod part_msdos
        insmod ext2
        set root='(/dev/sda,msdos3)'
        search --no-floppy --fs-uuid --set=root 
6bfc15a0-2e9d-4020-9346-9fd52d2696f5
        linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
menuentry "Memory test (memtest86+, experimental multiboot)" {
        insmod part_msdos
        insmod ext2
        set root='(/dev/sda,msdos3)'
        search --no-floppy --fs-uuid --set=root 
6bfc15a0-2e9d-4020-9346-9fd52d2696f5
        multiboot       /boot/memtest86+_multiboot.bin
}
menuentry "Memory test (memtest86+, serial console 115200, experimental 
multiboot)" {
        insmod part_msdos
        insmod ext2
        set root='(/dev/sda,msdos3)'
        search --no-floppy --fs-uuid --set=root 
6bfc15a0-2e9d-4020-9346-9fd52d2696f5
        multiboot       /boot/memtest86+_multiboot.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows NT/2000/XP (loader) (on /dev/sda1)" --class windows --class 
os {
        insmod part_msdos
        insmod ntfs
        set root='(/dev/sda,msdos1)'
        search --no-floppy --fs-uuid --set=root 5810EB9310EB7682
        drivemap -s (hd0) ${root}
        chainloader +1
}
menuentry "Debian GNU/Linux, with Linux 2.6.32-5-amd64 (on /dev/sda2)" --class 
gnu-linux --class gnu --class os {
        insmod part_msdos
        insmod ext2
        set root='(/dev/sda,msdos2)'
        search --no-floppy --fs-uuid --set=root 
7380c441-7e12-4401-9488-0c4996ecc9b6
        linux /boot/vmlinuz-2.6.32-5-amd64 
root=UUID=7380c441-7e12-4401-9488-0c4996ecc9b6 ro quiet
        initrd /boot/initrd.img-2.6.32-5-amd64
}
menuentry "Debian GNU/Linux, with Linux 2.6.32-5-amd64 (recovery mode) (on 
/dev/sda2)" --class gnu-linux --class gnu --class os {
        insmod part_msdos
        insmod ext2
        set root='(/dev/sda,msdos2)'
        search --no-floppy --fs-uuid --set=root 
7380c441-7e12-4401-9488-0c4996ecc9b6
        linux /boot/vmlinuz-2.6.32-5-amd64 
root=UUID=7380c441-7e12-4401-9488-0c4996ecc9b6 ro single
        initrd /boot/initrd.img-2.6.32-5-amd64
}
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
}
menuentry "Debian GNU/Linux, mit Linux 3.2.0-3-amd64 (Wiederherstellungsmodus) 
(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 single
        initrd /boot/initrd.img-3.2.0-3-amd64
}
### 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.
### 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 ###

Reply via email to