Bug#776098: grub-pc and grub-rescue-pc cause immediate reboot

Otto Meta m.debian.e9beccf8 at sister-shadow.de
Fri Jan 23 22:33:07 UTC 2015


Package: grub-pc
Version: 2.02~beta2-20
Severity: important

Dear Maintainer,

I performed a fresh installation from the Jessie Beta 2 netinst CD and chose
to install grub-pc into the MBR of the only disk (MSDOS partitions) in this
system. After finishing the installation, the system was rebooted, but instead
of getting some output from grub or the grub menu, the system rebooted again,
immediately after the BIOS was done. This repeated over and over. I cannot say
whether there was any output from grub at all, because if there was, it was
gone before I could see it.

It was possible to use the installer's rescue mode to chroot into the fresh
installation and run grub-install again, which finished with no errors, but
grub would still not run and reboot instead.

Next I tried grub-rescue-pc from Jessie (2.02~beta2-19) via CD, but
the system still rebooted as soon as the CD drive spun up to load grub.

grub-rescue-pc from Wheezy (1.99-27+deb7u2) via CD works and boots Linux as
expected. Installing LILO works and boots the system as expected. I purged
LILO, installed grub-pc again and booted via Wheezy's grub-rescue-pc
before generating this report, though.

As I don't see it in the data below, I'd like to mention that this system
runs on a VIA C3 Ezra CPU (fam: 06, model: 07, stepping: 08), which doesn't
implement cmov. Might be a red herring, though.

Thanks,
Otto


-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/sda1 / ext4 rw,relatime,errors=remount-ro,data=ordered 0 0
*********************** END /proc/mounts

*********************** 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
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

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
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk at 0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  e5c0ccdd-95ce-4ab0-9ea3-1d3ddc91a615
else
  search --no-floppy --fs-uuid --set=root e5c0ccdd-95ce-4ab0-9ea3-1d3ddc91a615
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_GB
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=-1
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=5
  # Fallback normal timeout code in case the timeout_style feature is
  # unavailable.
  else
    set timeout=5
  fi
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-e5c0ccdd-95ce-4ab0-9ea3-1d3ddc91a615' {
	load_video
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk at 0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  e5c0ccdd-95ce-4ab0-9ea3-1d3ddc91a615
	else
	  search --no-floppy --fs-uuid --set=root e5c0ccdd-95ce-4ab0-9ea3-1d3ddc91a615
	fi
	echo	'Loading Linux 3.16.0-4-586 ...'
	linux	/boot/vmlinuz-3.16.0-4-586 root=UUID=e5c0ccdd-95ce-4ab0-9ea3-1d3ddc91a615 ro  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-3.16.0-4-586
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-e5c0ccdd-95ce-4ab0-9ea3-1d3ddc91a615' {
	menuentry 'Debian GNU/Linux, with Linux 3.16.0-4-586' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-586-advanced-e5c0ccdd-95ce-4ab0-9ea3-1d3ddc91a615' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk at 0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  e5c0ccdd-95ce-4ab0-9ea3-1d3ddc91a615
		else
		  search --no-floppy --fs-uuid --set=root e5c0ccdd-95ce-4ab0-9ea3-1d3ddc91a615
		fi
		echo	'Loading Linux 3.16.0-4-586 ...'
		linux	/boot/vmlinuz-3.16.0-4-586 root=UUID=e5c0ccdd-95ce-4ab0-9ea3-1d3ddc91a615 ro  quiet
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-3.16.0-4-586
	}
	menuentry 'Debian GNU/Linux, with Linux 3.16.0-4-586 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-586-recovery-e5c0ccdd-95ce-4ab0-9ea3-1d3ddc91a615' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk at 0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  e5c0ccdd-95ce-4ab0-9ea3-1d3ddc91a615
		else
		  search --no-floppy --fs-uuid --set=root e5c0ccdd-95ce-4ab0-9ea3-1d3ddc91a615
		fi
		echo	'Loading Linux 3.16.0-4-586 ...'
		linux	/boot/vmlinuz-3.16.0-4-586 root=UUID=e5c0ccdd-95ce-4ab0-9ea3-1d3ddc91a615 ro single 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-3.16.0-4-586
	}
}

### 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 ###
*********************** END /boot/grub/grub.cfg

*********************** BEGIN /proc/mdstat
cat: /proc/mdstat: No such file or directory
*********************** END /proc/mdstat

*********************** BEGIN LVM
*********************** END LVM

*********************** BEGIN /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root  9 Jan 23 23:02 ata-CW058D_ATAPI_CD-R_RW_NC000000Q0 -> ../../sr0
lrwxrwxrwx 1 root root  9 Jan 23 23:02 ata-SanDisk_SDCFX3-2048_020802C1007J3246 -> ../../sda
lrwxrwxrwx 1 root root 10 Jan 23 23:02 ata-SanDisk_SDCFX3-2048_020802C1007J3246-part1 -> ../../sda1
*********************** END /dev/disk/by-id

*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root  9 Jan 23 23:02 2013-07-03-03-31-46-00 -> ../../sr0
lrwxrwxrwx 1 root root 10 Jan 23 23:02 e5c0ccdd-95ce-4ab0-9ea3-1d3ddc91a615 -> ../../sda1
*********************** END /dev/disk/by-uuid

-- System Information:
Debian Release: 8.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 3.16.0-4-586
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages grub-pc depends on:
ii  debconf [debconf-2.0]  1.5.55
ii  grub-common            2.02~beta2-20
ii  grub-pc-bin            2.02~beta2-20
ii  grub2-common           2.02~beta2-20
ii  ucf                    3.0030

grub-pc recommends no packages.

grub-pc suggests no packages.

-- debconf information:
* grub-pc/install_devices: /dev/disk/by-id/ata-SanDisk_SDCFX3-2048_020802C1007J3246
  grub-pc/disk_description:
  grub-pc/timeout: 5
  grub2/force_efi_extra_removable: false
  grub-pc/install_devices_disks_changed:
  grub-pc/install_devices_failed_upgrade: true
  grub2/kfreebsd_cmdline_default: quiet
  grub2/kfreebsd_cmdline:
  grub-pc/hidden_timeout: false
  grub-pc/kopt_extracted: false
  grub2/linux_cmdline_default: quiet
  grub-pc/chainload_from_menu.lst: true
  grub-pc/postrm_purge_boot_grub: false
  grub-pc/install_devices_empty: false
  grub2/device_map_regenerated:
  grub2/linux_cmdline:
  grub-pc/install_devices_failed: false
  grub-pc/mixed_legacy_and_grub2: true
  grub-pc/partition_description:



More information about the Pkg-grub-devel mailing list