Bug#879524: [grub2-common] update-grub generates many invalid entries

bitfreak25 bitfreak25 at gmx.de
Sun Oct 22 15:32:53 UTC 2017


Package: grub2-common
Version: 2.02~beta3-5
Severity: normal

When calling "update-grub" it creates a grub.cfg that is aprox. 0,5 Mb large.

The most of the entrys seems to be invalid. This causes a unwanted timeout when starting the computer. For many seconds there is a black-screen before the grub-bootmenu is shown.

The entries look like this:
>> menuentry 'Debian GNU/Linux (8.6) (auf /dev/sda4) (auf /dev/sda1) (auf /dev/sda7) (auf /dev/sda1) (auf /dev/sda7) (auf /dev/sda1) (auf /dev/sda7) (auf /dev/sda1) (auf /dev/sda7) (auf />> dev/sda1) (auf /dev/sda7) (auf /dev/sda1) (auf /dev/sda7) (auf /dev/sda1) (auf /dev/sda4) (auf /dev/sda1) (auf /dev/sda4) (auf /dev/sda1) (auf /dev/sda7) (auf /dev/sda4)' --class gnu->> linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/vmlinuz--a5f4feb8-8798-4281-9c29-e077126a20d6' {
>> 		insmod part_msdos
>> 		insmod ext2
>> 		set root='hd0,msdos4'
>> 		if [ x$feature_platform_search_hint = xy ]; then
>> 		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos4 --hint-efi=hd0,msdos4 --hint-baremetal=ahci0,msdos4  a5f4feb8-8798-4281-9c29-e077126a20d6
>> 		else
>> 		  search --no-floppy --fs-uuid --set=root a5f4feb8-8798-4281-9c29-e077126a20d6
>> 		fi
>> 		linux /vmlinuz root=/dev/sda4
>> 		initrd /initrd.img
>> 	}

Partitions with OS:
/dev/sda1      ext4	-> Debian 9.2 (update-grub is called here)
/dev/sda4      ext4	-> Debian 9.2
/dev/sda7      ext4	-> Debian 8.7

When calling "update-grub" on the other two Debian-installations, I got a similar behaviour. The MBR is currently written by the OS on "/dev/sda1" through "grub-install".

This bug is related to a previous created Installation-Report:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=879514


--- System information. ---
Architecture:
Kernel: Linux 4.9.0-4-amd64

Debian Release: 9.2
500 stable-updates ftp.tu-chemnitz.de
500 stable security.debian.org
500 stable ftp2.de.debian.org

--- Package information. ---
Depends (Version) | Installed
===============================================-+-=========================
grub-common (= 2.02~beta3-5) | 2.02~beta3-5
dpkg (>= 1.15.4) | 1.18.24
OR install-info |
libc6 (>= 2.14) |
libdevmapper1.02.1 (>= 2:1.02.36) |
liblzma5 (>= 5.1.1alpha+20120614) |


Package's Recommends field is empty.

Package's Suggests field is empty.



More information about the Pkg-grub-devel mailing list