Bug#788845: grub: grub fails to boot when no monitor is connected

Roger Pueyo Centelles | Guifi.net roger.pueyo at guifi.net
Mon Jun 15 14:12:17 UTC 2015


Package: grub-common
Version: 2.02~beta2-26
Severity: important
File: grub
Tags: d-i upstream

Dear Maintainer,

I have installed Debian Jessie 8.1 on several Minix Z64-A, a mini-PC based on an Intel Atom Z3735F CPU with a 64 bits EFI BIOS. After rebooting several times, I've noticed that the system does not boot if no monitor is connected to the HDMI port. The system goes past the BIOS (during this time, the NumLock keyboard LED responds to the key presses) but then freezes and does not do anything else (keyboard does not respond and connecting the monitor back does not show anything). Only  powercycling the device with the monitor plugged makes it boot normally. Identical behaviour has been identified with grub packages 2.02~beta2.-22 (Jessie), 2.02~beta2.23 (Stretch) and 2.02~beta2.26 (Sid), after upgrading, reinstalling grub2 to the device and updating the configuration (grub-install /dev/mmcblk0, update-grub).

Interestingly, installing Ubuntu Wily's grub packages 2.02~beta-23ubuntu1 allows booting without a monitor connected, but grub menu is not displayed at all after the BIOS and before booting the kernel.

-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/mmcblk0p2 / ext4 rw,relatime,errors=remount-ro,data=ordered 0 0
/dev/mmcblk0p1 /boot/efi vfat rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=utf8,shortname=mixed,errors=remount-ro 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_gpt
insmod ext2
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root  3bbd6a84-1c39-4562-b14f-66f0a24eee65
else
  search --no-floppy --fs-uuid --set=root 3bbd6a84-1c39-4562-b14f-66f0a24eee65
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=C
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=30
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-3bbd6a84-1c39-4562-b14f-66f0a24eee65' {
	load_video
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_gpt
	insmod ext2
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root  3bbd6a84-1c39-4562-b14f-66f0a24eee65
	else
	  search --no-floppy --fs-uuid --set=root 3bbd6a84-1c39-4562-b14f-66f0a24eee65
	fi
	echo	'S'\''està carregant el Linux 4.0.0-1-amd64 ...'
	linux	/boot/vmlinuz-4.0.0-1-amd64 root=UUID=3bbd6a84-1c39-4562-b14f-66f0a24eee65 ro  quiet
	echo	'S'\''està carregant la ramdisk inicial ...'
	initrd	/boot/initrd.img-4.0.0-1-amd64
}
submenu 'Opcions avançades de Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-3bbd6a84-1c39-4562-b14f-66f0a24eee65' {
	menuentry 'Debian GNU/Linux, amb el Linux 4.0.0-1-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.0.0-1-amd64-advanced-3bbd6a84-1c39-4562-b14f-66f0a24eee65' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root  3bbd6a84-1c39-4562-b14f-66f0a24eee65
		else
		  search --no-floppy --fs-uuid --set=root 3bbd6a84-1c39-4562-b14f-66f0a24eee65
		fi
		echo	'S'\''està carregant el Linux 4.0.0-1-amd64 ...'
		linux	/boot/vmlinuz-4.0.0-1-amd64 root=UUID=3bbd6a84-1c39-4562-b14f-66f0a24eee65 ro  quiet
		echo	'S'\''està carregant la ramdisk inicial ...'
		initrd	/boot/initrd.img-4.0.0-1-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 4.0.0-1-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.0.0-1-amd64-recovery-3bbd6a84-1c39-4562-b14f-66f0a24eee65' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root  3bbd6a84-1c39-4562-b14f-66f0a24eee65
		else
		  search --no-floppy --fs-uuid --set=root 3bbd6a84-1c39-4562-b14f-66f0a24eee65
		fi
		echo	'S'\''està carregant el Linux 4.0.0-1-amd64 ...'
		linux	/boot/vmlinuz-4.0.0-1-amd64 root=UUID=3bbd6a84-1c39-4562-b14f-66f0a24eee65 ro single 
		echo	'S'\''està carregant la ramdisk inicial ...'
		initrd	/boot/initrd.img-4.0.0-1-amd64
	}
	menuentry 'Debian GNU/Linux, amb el Linux 3.16.0-4-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-amd64-advanced-3bbd6a84-1c39-4562-b14f-66f0a24eee65' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root  3bbd6a84-1c39-4562-b14f-66f0a24eee65
		else
		  search --no-floppy --fs-uuid --set=root 3bbd6a84-1c39-4562-b14f-66f0a24eee65
		fi
		echo	'S'\''està carregant el Linux 3.16.0-4-amd64 ...'
		linux	/boot/vmlinuz-3.16.0-4-amd64 root=UUID=3bbd6a84-1c39-4562-b14f-66f0a24eee65 ro  quiet
		echo	'S'\''està carregant la ramdisk inicial ...'
		initrd	/boot/initrd.img-3.16.0-4-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 3.16.0-4-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-amd64-recovery-3bbd6a84-1c39-4562-b14f-66f0a24eee65' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root  3bbd6a84-1c39-4562-b14f-66f0a24eee65
		else
		  search --no-floppy --fs-uuid --set=root 3bbd6a84-1c39-4562-b14f-66f0a24eee65
		fi
		echo	'S'\''està carregant el Linux 3.16.0-4-amd64 ...'
		linux	/boot/vmlinuz-3.16.0-4-amd64 root=UUID=3bbd6a84-1c39-4562-b14f-66f0a24eee65 ro single 
		echo	'S'\''està carregant la ramdisk inicial ...'
		initrd	/boot/initrd.img-3.16.0-4-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 ###
menuentry 'System setup' $menuentry_id_option 'uefi-firmware' {
	fwsetup
}
### 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 13 Jun 15 15:18 mmc-BWBC3R_0x6a82f6ae -> ../../mmcblk0
lrwxrwxrwx 1 root root 15 Jun 15 15:18 mmc-BWBC3R_0x6a82f6ae-part1 -> ../../mmcblk0p1
lrwxrwxrwx 1 root root 15 Jun 15 15:18 mmc-BWBC3R_0x6a82f6ae-part2 -> ../../mmcblk0p2
lrwxrwxrwx 1 root root 15 Jun 15 15:18 mmc-BWBC3R_0x6a82f6ae-part3 -> ../../mmcblk0p3
*********************** END /dev/disk/by-id

*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 15 Jun 15 15:18 3bbd6a84-1c39-4562-b14f-66f0a24eee65 -> ../../mmcblk0p2
lrwxrwxrwx 1 root root 15 Jun 15 15:18 559b62b0-fafb-4107-bbe4-4d7e3727e1eb -> ../../mmcblk0p3
lrwxrwxrwx 1 root root 15 Jun 15 15:18 719E-C103 -> ../../mmcblk0p1
*********************** END /dev/disk/by-uuid

-- System Information:
Debian Release: stretch/sid
  APT prefers testing-updates
  APT policy: (500, 'testing-updates'), (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.0.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=ca_ES.UTF-8, LC_CTYPE=ca_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages grub-common depends on:
ii  gettext-base        0.19.4-1
ii  libc6               2.19-18
ii  libdevmapper1.02.1  2:1.02.90-2.2
ii  libfreetype6        2.5.2-4
ii  libfuse2            2.9.4-1
ii  liblzma5            5.1.1alpha+20120614-2+b3
ii  libpng12-0          1.2.50-2+b2
ii  zlib1g              1:1.2.8.dfsg-2+b1

Versions of packages grub-common recommends:
ii  os-prober  1.65

Versions of packages grub-common suggests:
ii  console-setup  1.128
pn  desktop-base   <none>
pn  grub-emu       <none>
pn  multiboot-doc  <none>
pn  xorriso        <none>

-- Configuration Files:
/etc/init.d/grub-common f5078cf9df66751dec9ae8f7baf4a0c2 [Errno 2] El fitxer o directori no existeix: u'/etc/init.d/grub-common f5078cf9df66751dec9ae8f7baf4a0c2'
/etc/pm/sleep.d/10_grub-common bc63b0c6613e95979446d17a88875d6a [Errno 2] El fitxer o directori no existeix: u'/etc/pm/sleep.d/10_grub-common bc63b0c6613e95979446d17a88875d6a'

-- no debconf information



More information about the Pkg-grub-devel mailing list