Bug#720513: grub-efi-amd64: EFI-boot broken after update
IOhannes m zmoelnig
zmoelnig at iem.at
Thu Aug 22 20:10:15 UTC 2013
Package: grub-efi-amd64
Version: 2.00-17
Severity: grave
Justification: renders package unusable
i'm running on a Lenovo S205 laptop that has both both Debian and W7 installed.
i'm booting via EFI.
today i upgraded grub vom 2.00-15 to 2.00-17.
after a reboot, grub stopped in 'rescue' mode.
my grub skills are a bit rusty and no 'insmod' command worked, so i was
basically locked out of the system.
i therefore booted from a netinst-CD into 'rescue'-mode and ran:
# grub-install --target=x86_64-efi --efi-directory=/boot/efi/ --boot-directory=/boot/efi/EFI/ --recheck
rebooting the system know gives me a somewhat nicer grub-console, from which at
least I can boot by running:
# load_env
# insmod all_video
# terminal_output gfxterm
# set root='hd0,gpt4'
# linux /boot/vmlinuz-3.10-2-amd64 root=/dev/sda4
# initrd /boot/initrd.img-3.10-2-amd64
# boot
obviously this is bit tedious to do each time you want to reboot the system.
unfortunately i haven't been able to make grub automatically use
/boot/grub/grub.cfg.
obviously i tried running `update-grub2` (and did so multiple times),
but while this creates/updates my /boot/grub/grub.cfg it doesn't make grub use
the file.
help appreciated,
fmadrs
IOhannes
-- Package-specific info:
*********************** BEGIN /proc/mounts
/dev/sda4 / ext4 rw,relatime,errors=remount-ro,data=ordered 0 0
/dev/sda1 /boot/efi vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=utf8,shortname=mixed,errors=remount-ro 0 0
/dev/sda6 /home ext4 rw,relatime,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
load_env
fi
set default="0"
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,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 dbbada09-2df9-423f-8628-2fa5cf8e5c8c
else
search --no-floppy --fs-uuid --set=root dbbada09-2df9-423f-8628-2fa5cf8e5c8c
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=
insmod gettext
fi
terminal_output gfxterm
set timeout=5
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_gpt
insmod ext2
set root='hd0,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 dbbada09-2df9-423f-8628-2fa5cf8e5c8c
else
search --no-floppy --fs-uuid --set=root dbbada09-2df9-423f-8628-2fa5cf8e5c8c
fi
insmod png
if background_image /usr/share/images/desktop-base/joy-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 ###
menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-dbbada09-2df9-423f-8628-2fa5cf8e5c8c' {
load_video
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 dbbada09-2df9-423f-8628-2fa5cf8e5c8c
else
search --no-floppy --fs-uuid --set=root dbbada09-2df9-423f-8628-2fa5cf8e5c8c
fi
echo 'Loading Linux 3.10-2-amd64 ...'
linux /boot/vmlinuz-3.10-2-amd64 root=UUID=dbbada09-2df9-423f-8628-2fa5cf8e5c8c ro quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.10-2-amd64
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-dbbada09-2df9-423f-8628-2fa5cf8e5c8c' {
menuentry 'Debian GNU/Linux, with Linux 3.10-2-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.10-2-amd64-advanced-dbbada09-2df9-423f-8628-2fa5cf8e5c8c' {
load_video
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 dbbada09-2df9-423f-8628-2fa5cf8e5c8c
else
search --no-floppy --fs-uuid --set=root dbbada09-2df9-423f-8628-2fa5cf8e5c8c
fi
echo 'Loading Linux 3.10-2-amd64 ...'
linux /boot/vmlinuz-3.10-2-amd64 root=UUID=dbbada09-2df9-423f-8628-2fa5cf8e5c8c ro quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.10-2-amd64
}
menuentry 'Debian GNU/Linux, with Linux 3.10-2-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.10-2-amd64-recovery-dbbada09-2df9-423f-8628-2fa5cf8e5c8c' {
load_video
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 dbbada09-2df9-423f-8628-2fa5cf8e5c8c
else
search --no-floppy --fs-uuid --set=root dbbada09-2df9-423f-8628-2fa5cf8e5c8c
fi
echo 'Loading Linux 3.10-2-amd64 ...'
linux /boot/vmlinuz-3.10-2-amd64 root=UUID=dbbada09-2df9-423f-8628-2fa5cf8e5c8c ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.10-2-amd64
}
menuentry 'Debian GNU/Linux, with Linux 3.10-1-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.10-1-amd64-advanced-dbbada09-2df9-423f-8628-2fa5cf8e5c8c' {
load_video
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 dbbada09-2df9-423f-8628-2fa5cf8e5c8c
else
search --no-floppy --fs-uuid --set=root dbbada09-2df9-423f-8628-2fa5cf8e5c8c
fi
echo 'Loading Linux 3.10-1-amd64 ...'
linux /boot/vmlinuz-3.10-1-amd64 root=UUID=dbbada09-2df9-423f-8628-2fa5cf8e5c8c ro quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.10-1-amd64
}
menuentry 'Debian GNU/Linux, with Linux 3.10-1-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.10-1-amd64-recovery-dbbada09-2df9-423f-8628-2fa5cf8e5c8c' {
load_video
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 dbbada09-2df9-423f-8628-2fa5cf8e5c8c
else
search --no-floppy --fs-uuid --set=root dbbada09-2df9-423f-8628-2fa5cf8e5c8c
fi
echo 'Loading Linux 3.10-1-amd64 ...'
linux /boot/vmlinuz-3.10-1-amd64 root=UUID=dbbada09-2df9-423f-8628-2fa5cf8e5c8c ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.10-1-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 ###
menuentry "Windows Boot Manager (UEFI on /dev/sda1)" --class windows --class os {
insmod part_gpt
insmod fat
set root='hd0,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 A2C2-821A
else
search --no-floppy --fs-uuid --set=root A2C2-821A
fi
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
### 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 0
lrwxrwxrwx 1 root root 9 Aug 22 21:43 ata-ST9500325AS_S2W0ED1G -> ../../sda
lrwxrwxrwx 1 root root 10 Aug 22 21:43 ata-ST9500325AS_S2W0ED1G-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Aug 22 21:43 ata-ST9500325AS_S2W0ED1G-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Aug 22 21:43 ata-ST9500325AS_S2W0ED1G-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Aug 22 21:43 ata-ST9500325AS_S2W0ED1G-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 Aug 22 21:43 ata-ST9500325AS_S2W0ED1G-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Aug 22 21:43 ata-ST9500325AS_S2W0ED1G-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 Aug 22 21:43 ata-ST9500325AS_S2W0ED1G-part7 -> ../../sda7
lrwxrwxrwx 1 root root 10 Aug 22 21:43 ata-ST9500325AS_S2W0ED1G-part8 -> ../../sda8
lrwxrwxrwx 1 root root 9 Aug 22 21:43 scsi-SATA_ST9500325AS_S2W0ED1G -> ../../sda
lrwxrwxrwx 1 root root 10 Aug 22 21:43 scsi-SATA_ST9500325AS_S2W0ED1G-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Aug 22 21:43 scsi-SATA_ST9500325AS_S2W0ED1G-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Aug 22 21:43 scsi-SATA_ST9500325AS_S2W0ED1G-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Aug 22 21:43 scsi-SATA_ST9500325AS_S2W0ED1G-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 Aug 22 21:43 scsi-SATA_ST9500325AS_S2W0ED1G-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Aug 22 21:43 scsi-SATA_ST9500325AS_S2W0ED1G-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 Aug 22 21:43 scsi-SATA_ST9500325AS_S2W0ED1G-part7 -> ../../sda7
lrwxrwxrwx 1 root root 10 Aug 22 21:43 scsi-SATA_ST9500325AS_S2W0ED1G-part8 -> ../../sda8
lrwxrwxrwx 1 root root 9 Aug 22 21:43 wwn-0x5000c5003dfbd63a -> ../../sda
lrwxrwxrwx 1 root root 10 Aug 22 21:43 wwn-0x5000c5003dfbd63a-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Aug 22 21:43 wwn-0x5000c5003dfbd63a-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Aug 22 21:43 wwn-0x5000c5003dfbd63a-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Aug 22 21:43 wwn-0x5000c5003dfbd63a-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 Aug 22 21:43 wwn-0x5000c5003dfbd63a-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Aug 22 21:43 wwn-0x5000c5003dfbd63a-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 Aug 22 21:43 wwn-0x5000c5003dfbd63a-part7 -> ../../sda7
lrwxrwxrwx 1 root root 10 Aug 22 21:43 wwn-0x5000c5003dfbd63a-part8 -> ../../sda8
*********************** END /dev/disk/by-id
*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Aug 22 21:43 6b3b74df-0b48-4fe7-9a3c-27d567a44688 -> ../../sda5
lrwxrwxrwx 1 root root 10 Aug 22 21:43 A2C2-821A -> ../../sda1
lrwxrwxrwx 1 root root 10 Aug 22 21:43 F250CF7C50CF4657 -> ../../sda3
lrwxrwxrwx 1 root root 10 Aug 22 21:43 a7bfa2c1-bb5b-4332-9ef8-565337eb0df7 -> ../../sda7
lrwxrwxrwx 1 root root 10 Aug 22 21:43 d96580ea-466d-4a19-a869-fb36c9881e87 -> ../../sda6
lrwxrwxrwx 1 root root 10 Aug 22 21:43 dbbada09-2df9-423f-8628-2fa5cf8e5c8c -> ../../sda4
*********************** END /dev/disk/by-uuid
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.10-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Versions of packages grub-efi-amd64 depends on:
ii debconf [debconf-2.0] 1.5.50
ii grub-common 2.00-17
ii grub-efi-amd64-bin 2.00-17
ii grub2-common 2.00-17
ii ucf 3.0027+nmu1
grub-efi-amd64 recommends no packages.
grub-efi-amd64 suggests no packages.
-- debconf information:
grub2/kfreebsd_cmdline:
grub2/device_map_regenerated:
* grub2/linux_cmdline:
grub2/kfreebsd_cmdline_default: quiet
* grub2/linux_cmdline_default: quiet
More information about the Pkg-grub-devel
mailing list