Bug#737475: grub-common: Autogenerated grub.cfg generates several errors & fails to place debian kernels in menu
ael
law_ence.dev at ntlworld.com
Sun Feb 2 22:19:12 UTC 2014
Package: grub-common
Version: 2.00-22
Severity: normal
I have several machines running testing. Grub works ok on all
but this amd64 box. The problem seems to have arisen after
the upgrade to version 2.00-22.
I use both the debian and my locally compiled kernels, hence the custom
entries at the end of grub.cfg.
Trying to boot results in error messages flashing past too fast to read,
and then a menu including *only* my custom kernels - which can be
booted normally.
I edited grub.cfg to include set pager=1, and that allowed me to see the
error messages on subsequent boots. In passing, I suggest that
00_header should always include that setting. I find the the grub
command line is unusable without it since I need >help to jog my memory.
The error messages (from scribbled notes which may not be quite
accurate) started with:
gnulinux-simple-43ae47ae-86fc-43a6-9661-dcf030179dc0
error: syntax error
error: Incorrect command
error: syntax error
error: too many titles for menuentry:
gnulinux-3.12-1-amd64-advanced-43ae47ae-86fc-43a6-9661-dcf030179dc0
.... and much more in a similar mode.
Presumably you can reproduce the problem from the grub.cfg below.
It was generated (apart from adding set pager=1) by upgrade-grub.
I was able to boot the debian kernels from the grub command line
using simple "linux" and "initrd" grub commands, as you would expect.
-- Package-specific info:
*********************** BEGIN /proc/mounts
/dev/root / ext3 rw,relatime,errors=remount-ro,barrier=1,data=writeback 0 0
/dev/sda1 /usr32 ext3 rw,relatime,errors=continue,barrier=1,data=writeback 0 0
/dev/sdd1 /jts_boot ext3 rw,relatime,errors=continue,barrier=1,data=writeback 0 0
/dev/sdd3 /fs0 ext4 rw,relatime,data=ordered 0 0
/dev/sdc1 /exbackup ext4 rw,relatime,data=ordered 0 0
*********************** END /proc/mounts
*********************** BEGIN /boot/grub/device.map
(hd0) /dev/disk/by-id/ata-JTS_Corporation_CHAMPION_MODEL_C3000-3A_R000049710
(hd1) /dev/disk/by-id/ata-WDC_WD5000AAKS-22TMA0_WD-WCAPW3402181
(hd2) /dev/disk/by-id/ata-MAXTOR_6L060J3_663132418741
(hd3) /dev/disk/by-id/ata-Maxtor_6Y160P0_Y43PS9LE
*********************** END /boot/grub/device.map
*********************** BEGIN /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
set have_grubenv=true
load_env
fi
set default="2"
## Next line was inserted to allow diagnosis of problem
## It was not autogenerated
set pager=1
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
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 {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
terminal_input console
terminal_output console
if [ "${recordfail}" = 1 ] ; then
set timeout=-1
else
set timeout=25
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
set gfxpayload="${1}"
}
set linux_gfx_mode=
export linux_gfx_mode
menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-43ae47ae-86fc-43a6-9661-dcf030179dc0' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='hd3,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 --hint='hd3,msdos1' 43ae47ae-86fc-43a6-9661-dcf030179dc0
else
search --no-floppy --fs-uuid --set=root 43ae47ae-86fc-43a6-9661-dcf030179dc0
fi
echo 'Loading Linux 3.12-1-amd64 ...'
linux /boot/vmlinuz-3.12-1-amd64 root=UUID=43ae47ae-86fc-43a6-9661-dcf030179dc0 ro
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.12-1-amd64
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-43ae47ae-86fc-43a6-9661-dcf030179dc0' {
menuentry 'Debian GNU/Linux, with Linux 3.12-1-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.12-1-amd64-advanced-43ae47ae-86fc-43a6-9661-dcf030179dc0' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='hd3,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 --hint='hd3,msdos1' 43ae47ae-86fc-43a6-9661-dcf030179dc0
else
search --no-floppy --fs-uuid --set=root 43ae47ae-86fc-43a6-9661-dcf030179dc0
fi
echo 'Loading Linux 3.12-1-amd64 ...'
linux /boot/vmlinuz-3.12-1-amd64 root=UUID=43ae47ae-86fc-43a6-9661-dcf030179dc0 ro
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.12-1-amd64
}
menuentry 'Debian GNU/Linux, with Linux 3.12-1-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.12-1-amd64-recovery-43ae47ae-86fc-43a6-9661-dcf030179dc0' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='hd3,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 --hint='hd3,msdos1' 43ae47ae-86fc-43a6-9661-dcf030179dc0
else
search --no-floppy --fs-uuid --set=root 43ae47ae-86fc-43a6-9661-dcf030179dc0
fi
echo 'Loading Linux 3.12-1-amd64 ...'
linux /boot/vmlinuz-3.12-1-amd64 root=UUID=43ae47ae-86fc-43a6-9661-dcf030179dc0 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.12-1-amd64
}
menuentry 'Debian GNU/Linux, with Linux 3.11-2-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.11-2-amd64-advanced-43ae47ae-86fc-43a6-9661-dcf030179dc0' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='hd3,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 --hint='hd3,msdos1' 43ae47ae-86fc-43a6-9661-dcf030179dc0
else
search --no-floppy --fs-uuid --set=root 43ae47ae-86fc-43a6-9661-dcf030179dc0
fi
echo 'Loading Linux 3.11-2-amd64 ...'
linux /boot/vmlinuz-3.11-2-amd64 root=UUID=43ae47ae-86fc-43a6-9661-dcf030179dc0 ro
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.11-2-amd64
}
menuentry 'Debian GNU/Linux, with Linux 3.11-2-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.11-2-amd64-recovery-43ae47ae-86fc-43a6-9661-dcf030179dc0' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='hd3,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 --hint='hd3,msdos1' 43ae47ae-86fc-43a6-9661-dcf030179dc0
else
search --no-floppy --fs-uuid --set=root 43ae47ae-86fc-43a6-9661-dcf030179dc0
fi
echo 'Loading Linux 3.11-2-amd64 ...'
linux /boot/vmlinuz-3.11-2-amd64 root=UUID=43ae47ae-86fc-43a6-9661-dcf030179dc0 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.11-2-amd64
}
menuentry 'Debian GNU/Linux, with Linux 3.10-3-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.10-3-amd64-advanced-43ae47ae-86fc-43a6-9661-dcf030179dc0' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='hd3,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 --hint='hd3,msdos1' 43ae47ae-86fc-43a6-9661-dcf030179dc0
else
search --no-floppy --fs-uuid --set=root 43ae47ae-86fc-43a6-9661-dcf030179dc0
fi
echo 'Loading Linux 3.10-3-amd64 ...'
linux /boot/vmlinuz-3.10-3-amd64 root=UUID=43ae47ae-86fc-43a6-9661-dcf030179dc0 ro
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.10-3-amd64
}
menuentry 'Debian GNU/Linux, with Linux 3.10-3-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.10-3-amd64-recovery-43ae47ae-86fc-43a6-9661-dcf030179dc0' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='hd3,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 --hint='hd3,msdos1' 43ae47ae-86fc-43a6-9661-dcf030179dc0
else
search --no-floppy --fs-uuid --set=root 43ae47ae-86fc-43a6-9661-dcf030179dc0
fi
echo 'Loading Linux 3.10-3-amd64 ...'
linux /boot/vmlinuz-3.10-3-amd64 root=UUID=43ae47ae-86fc-43a6-9661-dcf030179dc0 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.10-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/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###
### 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 ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
### BEGIN /etc/grub.d/50_conquest2 ###
# 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 3.13.0_c2+ " {
insmod ext2
set root=(hd0,msdos1)
echo 'Loading Linux 3.13.0_c2+ ...'
linux /boot/bzImage-3.13.0_c2+ ro root=/dev/sdb1
}
menuentry "Linux 3.13.0-rc4_c2+ " {
insmod ext2
set root=(hd0,msdos1)
echo 'Loading Linux 3.13.0-rc4_c2+ ...'
linux /boot/bzImage-3.13.0-rc4_c2+ ro root=/dev/sdb1
}
menuentry "Linux 3.12.0_c2+ " {
insmod ext2
set root=(hd0,msdos1)
echo 'Loading Linux 3.12.0_c2+ ...'
linux /boot/bzImage-3.12.0_c2+ ro root=/dev/sdb1
}
menuentry "Linux 3.10.0-rc5_c2+ " {
insmod ext2
set root=(hd0,msdos1)
echo 'Loading Linux 3.10.0-rc5_c2+ ...'
linux /boot/bzImage-3.10.0-rc5_c2+ ro root=/dev/sdb1
}
menuentry "Linux 3.9.0_c2+ " {
insmod ext2
set root=(hd0,msdos1)
echo 'Loading Linux 3.9.0_c2+ ...'
linux /boot/bzImage-3.9.0_c2+ ro root=/dev/sdb1
}
menuentry "Linux 3.8.0_c2+ " {
insmod ext2
set root=(hd0,msdos1)
echo 'Loading Linux 3.8.0_c2+ ...'
linux /boot/bzImage-3.8.0_c2+ ro root=/dev/sdb1
}
menuentry "Linux 3.8.0-rc6_c2+ " {
insmod ext2
set root=(hd0,msdos1)
echo 'Loading Linux 3.8.0-rc6_c2+ ...'
linux /boot/bzImage-3.8.0-rc6_c2+ ro root=/dev/sdb1
}
menuentry "Linux 3.8.0-rc3_c2+ " {
insmod ext2
set root=(hd0,msdos1)
echo 'Loading Linux 3.8.0-rc3_c2+ ...'
linux /boot/bzImage-3.8.0-rc3_c2+ ro root=/dev/sdb1
}
### END /etc/grub.d/50_conquest2 ###
*********************** END /boot/grub/grub.cfg
*********************** BEGIN /proc/mdstat
cat: /proc/mdstat: No such file or directory
*********************** END /proc/mdstat
*********************** BEGIN /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root 9 Feb 2 21:31 ata-JTS_Corporation_CHAMPION_MODEL_C3000-3AF_R000049710 -> ../../sdd
lrwxrwxrwx 1 root root 10 Feb 2 21:31 ata-JTS_Corporation_CHAMPION_MODEL_C3000-3AF_R000049710-part1 -> ../../sdd1
lrwxrwxrwx 1 root root 10 Feb 2 21:31 ata-JTS_Corporation_CHAMPION_MODEL_C3000-3AF_R000049710-part2 -> ../../sdd2
lrwxrwxrwx 1 root root 10 Feb 2 21:32 ata-JTS_Corporation_CHAMPION_MODEL_C3000-3AF_R000049710-part3 -> ../../sdd3
lrwxrwxrwx 1 root root 9 Feb 2 21:31 ata-MAXTOR_6L060J3_663132418741 -> ../../sda
lrwxrwxrwx 1 root root 10 Feb 2 21:31 ata-MAXTOR_6L060J3_663132418741-part1 -> ../../sda1
lrwxrwxrwx 1 root root 9 Feb 2 21:31 ata-Maxtor_6Y160P0_Y43PS9LE -> ../../sdb
lrwxrwxrwx 1 root root 10 Feb 2 21:31 ata-Maxtor_6Y160P0_Y43PS9LE-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Feb 2 21:31 ata-Maxtor_6Y160P0_Y43PS9LE-part2 -> ../../sdb2
lrwxrwxrwx 1 root root 10 Feb 2 21:31 ata-Maxtor_6Y160P0_Y43PS9LE-part5 -> ../../sdb5
lrwxrwxrwx 1 root root 9 Feb 2 21:31 ata-PIONEER_DVD-RW_DVR-218L_IIQC199015TA -> ../../sr0
lrwxrwxrwx 1 root root 9 Feb 2 21:31 ata-ST31500341AS_9VS1HL8W -> ../../sdc
lrwxrwxrwx 1 root root 10 Feb 2 21:31 ata-ST31500341AS_9VS1HL8W-part1 -> ../../sdc1
lrwxrwxrwx 1 root root 9 Feb 2 21:31 scsi-SATA_JTS_Corporation_R000049710 -> ../../sdd
lrwxrwxrwx 1 root root 10 Feb 2 21:31 scsi-SATA_JTS_Corporation_R000049710-part1 -> ../../sdd1
lrwxrwxrwx 1 root root 10 Feb 2 21:31 scsi-SATA_JTS_Corporation_R000049710-part2 -> ../../sdd2
lrwxrwxrwx 1 root root 10 Feb 2 21:32 scsi-SATA_JTS_Corporation_R000049710-part3 -> ../../sdd3
lrwxrwxrwx 1 root root 9 Feb 2 21:31 scsi-SATA_MAXTOR_6L060J3_663132418741 -> ../../sda
lrwxrwxrwx 1 root root 10 Feb 2 21:31 scsi-SATA_MAXTOR_6L060J3_663132418741-part1 -> ../../sda1
lrwxrwxrwx 1 root root 9 Feb 2 21:31 scsi-SATA_Maxtor_6Y160P0_Y43PS9LE -> ../../sdb
lrwxrwxrwx 1 root root 10 Feb 2 21:31 scsi-SATA_Maxtor_6Y160P0_Y43PS9LE-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Feb 2 21:31 scsi-SATA_Maxtor_6Y160P0_Y43PS9LE-part2 -> ../../sdb2
lrwxrwxrwx 1 root root 10 Feb 2 21:31 scsi-SATA_Maxtor_6Y160P0_Y43PS9LE-part5 -> ../../sdb5
lrwxrwxrwx 1 root root 9 Feb 2 21:31 scsi-SATA_ST31500341AS_9VS1HL8W -> ../../sdc
lrwxrwxrwx 1 root root 10 Feb 2 21:31 scsi-SATA_ST31500341AS_9VS1HL8W-part1 -> ../../sdc1
lrwxrwxrwx 1 root root 9 Feb 2 21:31 wwn-0x5000c5001133f3c5 -> ../../sdc
lrwxrwxrwx 1 root root 10 Feb 2 21:31 wwn-0x5000c5001133f3c5-part1 -> ../../sdc1
*********************** END /dev/disk/by-id
*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Feb 2 21:31 43ae47ae-86fc-43a6-9661-dcf030179dc0 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Feb 2 21:31 49139da3-10f8-4ef2-b776-247a2f26a851 -> ../../sdc1
lrwxrwxrwx 1 root root 10 Feb 2 21:32 5bac9dfe-9021-44dc-96b5-9b4133f26fdd -> ../../sdd3
lrwxrwxrwx 1 root root 10 Feb 2 21:31 aa5ac778-faa3-47c2-a09f-a82870024721 -> ../../sda1
*********************** END /dev/disk/by-uuid
-- System Information:
Debian Release: jessie/sid
Architecture: amd64 (x86_64)
Kernel: Linux 3.13.0_c2+
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages grub-common depends on:
ii gettext-base 0.18.3.2-1
ii libc6 2.17-97
ii libdevmapper1.02.1 2:1.02.77-6+b1
ii libfreetype6 2.5.2-1
ii libfuse2 2.9.2-4
ii liblzma5 5.1.1alpha+20120614-2
ii libpng12-0 1.2.49-5
ii zlib1g 1:1.2.8.dfsg-1
Versions of packages grub-common recommends:
pn os-prober <none>
Versions of packages grub-common suggests:
ii console-setup 1.102
ii desktop-base 7.0.3
pn grub-emu <none>
ii multiboot-doc 0.97-67
pn xorriso <none>
-- no debconf information
More information about the Pkg-grub-devel
mailing list