Bug#711019: load_video produces "file not found" errors and causes GRUB to pause when booting

Antoine Beaupré anarcat at koumbit.org
Fri Jan 23 18:37:37 UTC 2015


Package: grub-pc
Version: 2.02~beta2-19
Followup-For: Bug #711019

I also see this problem here. It was a little surprising at first, and
hard to track down.

I can confirm the boot continues automatically after a while. However,
just commenting out load_video doesn't work here because the kernel
doesn't seem to display properly after loading. I only see "Booting
kernel", then I was expecting to see the LUKS crypto prompt, and it just
hangs there, displaying nothing else.

If this will break jessie+1 upgrades, it seems important to fix this in
the package. I don't believe I did anything special that should warrant
such a breakage, and it's unclear to me how to fix the problem without
patching the grub.d files, which should be under the package's control
(ie. it's not modified locally).

Otherwise, what's the proper way to fix this? Maybe it should be in the
jessie release notes, at least?

-- Package-specific info:

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

*********************** BEGIN /boot/grub/device.map
(hd0)	/dev/disk/by-id/ata-Hitachi_HTS545016B9A300_091128PBPB06QCDUP84M
*********************** 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
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-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  945f3bd6-f5d0-423b-9276-d7795f58539a
else
  search --no-floppy --fs-uuid --set=root 945f3bd6-f5d0-423b-9276-d7795f58539a
fi
    font="/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=fr_CA
  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 ###
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-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  945f3bd6-f5d0-423b-9276-d7795f58539a
else
  search --no-floppy --fs-uuid --set=root 945f3bd6-f5d0-423b-9276-d7795f58539a
fi
insmod png
if background_image /grub/.background_cache.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 ###
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-4db082d7-1c24-418f-924a-407f9c9f5768' {
	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-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  945f3bd6-f5d0-423b-9276-d7795f58539a
	else
	  search --no-floppy --fs-uuid --set=root 945f3bd6-f5d0-423b-9276-d7795f58539a
	fi
	echo	'Chargement de Linux 3.16.0-4-amd64…'
	linux	/vmlinuz-3.16.0-4-amd64 root=/dev/mapper/angelassd0-root ro  quiet
	echo	'Chargement du disque mémoire initial…'
	initrd	/initrd.img-3.16.0-4-amd64
}
submenu 'Options avancées pour Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-4db082d7-1c24-418f-924a-407f9c9f5768' {
	menuentry 'Debian GNU/Linux, avec 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-4db082d7-1c24-418f-924a-407f9c9f5768' {
		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-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  945f3bd6-f5d0-423b-9276-d7795f58539a
		else
		  search --no-floppy --fs-uuid --set=root 945f3bd6-f5d0-423b-9276-d7795f58539a
		fi
		echo	'Chargement de Linux 3.16.0-4-amd64…'
		linux	/vmlinuz-3.16.0-4-amd64 root=/dev/mapper/angelassd0-root ro  quiet
		echo	'Chargement du disque mémoire initial…'
		initrd	/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-4db082d7-1c24-418f-924a-407f9c9f5768' {
		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-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  945f3bd6-f5d0-423b-9276-d7795f58539a
		else
		  search --no-floppy --fs-uuid --set=root 945f3bd6-f5d0-423b-9276-d7795f58539a
		fi
		echo	'Chargement de Linux 3.16.0-4-amd64…'
		linux	/vmlinuz-3.16.0-4-amd64 root=/dev/mapper/angelassd0-root ro single 
		echo	'Chargement du disque mémoire initial…'
		initrd	/initrd.img-3.16.0-4-amd64
	}
	menuentry 'Debian GNU/Linux, avec Linux 3.2.0-4-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.2.0-4-amd64-advanced-4db082d7-1c24-418f-924a-407f9c9f5768' {
		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-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  945f3bd6-f5d0-423b-9276-d7795f58539a
		else
		  search --no-floppy --fs-uuid --set=root 945f3bd6-f5d0-423b-9276-d7795f58539a
		fi
		echo	'Chargement de Linux 3.2.0-4-amd64…'
		linux	/vmlinuz-3.2.0-4-amd64 root=/dev/mapper/angelassd0-root ro  quiet
		echo	'Chargement du disque mémoire initial…'
		initrd	/initrd.img-3.2.0-4-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 3.2.0-4-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.2.0-4-amd64-recovery-4db082d7-1c24-418f-924a-407f9c9f5768' {
		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-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  945f3bd6-f5d0-423b-9276-d7795f58539a
		else
		  search --no-floppy --fs-uuid --set=root 945f3bd6-f5d0-423b-9276-d7795f58539a
		fi
		echo	'Chargement de Linux 3.2.0-4-amd64…'
		linux	/vmlinuz-3.2.0-4-amd64 root=/dev/mapper/angelassd0-root ro single 
		echo	'Chargement du disque mémoire initial…'
		initrd	/initrd.img-3.2.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/20_memtest86 ###
menuentry "Memory test (memtest86)" {
	linux16	/memtest86.bin
}
### END /etc/grub.d/20_memtest86 ###

### 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 /dev/disk/by-id
total 0K
lrwxrwxrwx 1 root root  9 Jan 23 13:18 ata-M4-CT128M4SSD2_000000001307092AC870 -> ../../sda
lrwxrwxrwx 1 root root 10 Jan 23 13:18 ata-M4-CT128M4SSD2_000000001307092AC870-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jan 23 13:18 ata-M4-CT128M4SSD2_000000001307092AC870-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jan 23 13:18 dm-name-angelassd0-root -> ../../dm-2
lrwxrwxrwx 1 root root 10 Jan 23 13:18 dm-name-angelassd0-swap -> ../../dm-1
lrwxrwxrwx 1 root root 10 Jan 23 13:18 dm-name-sda2_crypt -> ../../dm-0
lrwxrwxrwx 1 root root 10 Jan 23 13:18 dm-uuid-CRYPT-LUKS1-a1436a5d2f5b4fd49da200997971c6d5-sda2_crypt -> ../../dm-0
lrwxrwxrwx 1 root root 10 Jan 23 13:18 dm-uuid-LVM-PEYfCGqC2unNQbopocCo1nigZ9ldchGBE2SXdRCXao3VTkKYCGVSPuhydj0GR4nW -> ../../dm-2
lrwxrwxrwx 1 root root 10 Jan 23 13:18 dm-uuid-LVM-PEYfCGqC2unNQbopocCo1nigZ9ldchGBxmhY269b7Ayd15VG39fzzC82ieSc9BLP -> ../../dm-1
lrwxrwxrwx 1 root root 10 Jan 23 13:18 lvm-pv-uuid-2MKtSN-1c6t-WbaD-2QsX-VqR4-b3a5-nSaKTl -> ../../dm-0
lrwxrwxrwx 1 root root  9 Jan 23 13:18 wwn-0x500a0751092ac870 -> ../../sda
lrwxrwxrwx 1 root root 10 Jan 23 13:18 wwn-0x500a0751092ac870-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jan 23 13:18 wwn-0x500a0751092ac870-part2 -> ../../sda2
*********************** END /dev/disk/by-id

*********************** BEGIN /dev/disk/by-uuid
total 0K
lrwxrwxrwx 1 root root 10 Jan 23 13:18 4db082d7-1c24-418f-924a-407f9c9f5768 -> ../../dm-2
lrwxrwxrwx 1 root root 10 Jan 23 13:18 88ea1b3d-fc1e-4413-9627-34c538ad3dfd -> ../../dm-1
lrwxrwxrwx 1 root root 10 Jan 23 13:18 945f3bd6-f5d0-423b-9276-d7795f58539a -> ../../sda1
lrwxrwxrwx 1 root root 10 Jan 23 13:18 a1436a5d-2f5b-4fd4-9da2-00997971c6d5 -> ../../sda2
*********************** END /dev/disk/by-uuid

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

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

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

grub-pc recommends no packages.

grub-pc suggests no packages.

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



More information about the Pkg-grub-devel mailing list