Bug#778810: grub-efi-amd64-bin: boot/bootx86.efi problems
Mark Brown
broonie at debian.org
Fri Feb 20 05:21:50 UTC 2015
Package: grub-efi-amd64-bin
Version: 2.02~beta2-20
Severity: critical
On a couple of occasions recently my system has been updated to remove
boot/bootx86.efi from the EFI boot partition, and on a new install on a
separate machine this file was not installed at all. Instead
debian/grubx86.efi was left installed. Unfortunately on both systems my
BIOS ignores this file and will only boot boot/bootx86.efi so these
updates make the system unbootable.
Severity critical due to the deletion of existing boot/bootx86.efi - one
on occasion this caused my system to boot into the Windows recovery
partition which proceeded to unconditionally start repartitioning the
system destroying data and without recovery media to hand it renders the
system unusuable even without that.
Apologies if this is filed against the wrong package, I'm not 100% clear
what is responsible for installing these files.
-- Package-specific info:
*********************** BEGIN /proc/mounts
/dev/disk/by-uuid/6424c5eb-8fa3-46fd-af94-8a581aa54f14 / ext4 rw,relatime,errors=remount-ro,data=ordered 0 0
/dev/sda1 /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
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 6424c5eb-8fa3-46fd-af94-8a581aa54f14
else
search --no-floppy --fs-uuid --set=root 6424c5eb-8fa3-46fd-af94-8a581aa54f14
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 ###
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 6424c5eb-8fa3-46fd-af94-8a581aa54f14
else
search --no-floppy --fs-uuid --set=root 6424c5eb-8fa3-46fd-af94-8a581aa54f14
fi
insmod png
if background_image /usr/share/images/desktop-base/lines-grub.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-6424c5eb-8fa3-46fd-af94-8a581aa54f14' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 6424c5eb-8fa3-46fd-af94-8a581aa54f14
else
search --no-floppy --fs-uuid --set=root 6424c5eb-8fa3-46fd-af94-8a581aa54f14
fi
echo 'Loading Linux 3.18.0-trunk-amd64 ...'
linux /boot/vmlinuz-3.18.0-trunk-amd64 root=UUID=6424c5eb-8fa3-46fd-af94-8a581aa54f14 ro quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.18.0-trunk-amd64
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-6424c5eb-8fa3-46fd-af94-8a581aa54f14' {
menuentry 'Debian GNU/Linux, with Linux 3.18.0-trunk-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.18.0-trunk-amd64-advanced-6424c5eb-8fa3-46fd-af94-8a581aa54f14' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 6424c5eb-8fa3-46fd-af94-8a581aa54f14
else
search --no-floppy --fs-uuid --set=root 6424c5eb-8fa3-46fd-af94-8a581aa54f14
fi
echo 'Loading Linux 3.18.0-trunk-amd64 ...'
linux /boot/vmlinuz-3.18.0-trunk-amd64 root=UUID=6424c5eb-8fa3-46fd-af94-8a581aa54f14 ro quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.18.0-trunk-amd64
}
menuentry 'Debian GNU/Linux, with Linux 3.18.0-trunk-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.18.0-trunk-amd64-recovery-6424c5eb-8fa3-46fd-af94-8a581aa54f14' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 6424c5eb-8fa3-46fd-af94-8a581aa54f14
else
search --no-floppy --fs-uuid --set=root 6424c5eb-8fa3-46fd-af94-8a581aa54f14
fi
echo 'Loading Linux 3.18.0-trunk-amd64 ...'
linux /boot/vmlinuz-3.18.0-trunk-amd64 root=UUID=6424c5eb-8fa3-46fd-af94-8a581aa54f14 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.18.0-trunk-amd64
}
menuentry 'Debian GNU/Linux, with 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-6424c5eb-8fa3-46fd-af94-8a581aa54f14' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 6424c5eb-8fa3-46fd-af94-8a581aa54f14
else
search --no-floppy --fs-uuid --set=root 6424c5eb-8fa3-46fd-af94-8a581aa54f14
fi
echo 'Loading Linux 3.16.0-4-amd64 ...'
linux /boot/vmlinuz-3.16.0-4-amd64 root=UUID=6424c5eb-8fa3-46fd-af94-8a581aa54f14 ro quiet
echo 'Loading initial ramdisk ...'
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-6424c5eb-8fa3-46fd-af94-8a581aa54f14' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 6424c5eb-8fa3-46fd-af94-8a581aa54f14
else
search --no-floppy --fs-uuid --set=root 6424c5eb-8fa3-46fd-af94-8a581aa54f14
fi
echo 'Loading Linux 3.16.0-4-amd64 ...'
linux /boot/vmlinuz-3.16.0-4-amd64 root=UUID=6424c5eb-8fa3-46fd-af94-8a581aa54f14 ro single
echo 'Loading initial ramdisk ...'
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 9 Feb 19 20:55 ata-SAMSUNG_MZMTD256HAGM-000L1_S15GNEACC10187 -> ../../sda
lrwxrwxrwx 1 root root 10 Feb 19 20:55 ata-SAMSUNG_MZMTD256HAGM-000L1_S15GNEACC10187-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Feb 19 20:55 ata-SAMSUNG_MZMTD256HAGM-000L1_S15GNEACC10187-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Feb 19 20:55 ata-SAMSUNG_MZMTD256HAGM-000L1_S15GNEACC10187-part3 -> ../../sda3
lrwxrwxrwx 1 root root 9 Feb 19 20:55 wwn-0x5002538500000000 -> ../../sda
lrwxrwxrwx 1 root root 10 Feb 19 20:55 wwn-0x5002538500000000-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Feb 19 20:55 wwn-0x5002538500000000-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Feb 19 20:55 wwn-0x5002538500000000-part3 -> ../../sda3
*********************** END /dev/disk/by-id
*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Feb 19 20:55 1298-C129 -> ../../sda1
lrwxrwxrwx 1 root root 10 Feb 19 20:55 6424c5eb-8fa3-46fd-af94-8a581aa54f14 -> ../../sda2
lrwxrwxrwx 1 root root 10 Feb 19 20:55 7c8e79b8-33a2-487d-ab34-703374cc2008 -> ../../sda3
*********************** END /dev/disk/by-uuid
-- System Information:
Debian Release: 8.0
APT prefers testing-updates
APT policy: (500, 'testing-updates'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.18.0-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages grub-efi-amd64-bin depends on:
ii efibootmgr 0.11.0-3
ii grub-common 2.02~beta2-20
grub-efi-amd64-bin recommends no packages.
grub-efi-amd64-bin suggests no packages.
-- no debconf information
More information about the Pkg-grub-devel
mailing list