Bug#1074081: grub-efi-amd64: After installing Debian 12.5 on an UEFI system Debian wont boot
T.Schweikle
tschweikle at gmail.com
Sun Jun 23 00:55:28 BST 2024
Package: grub-efi-amd64
Version: 2.12-2
Severity: important
Tags: d-i
X-Debbugs-Cc: tschweikle at gmail.com
Dear Maintainer,
* What led up to the situation?
Installing Debian 12.5 from Debian live media available from
https://mirrors.edge.kernel.org/debian-cd/12.5.0-live/amd64/iso-hybrid/debian-
live-12.5.0-amd64-xfce.iso
* What exactly did you do (or not do) that was effective (or
ineffective)?
Installed Debian 12.5 as given above to an UEFI booting system.
* What was the outcome of this action?
Debian 12.5 installed, but not able to boot. Had to boot an other CD starting
GRUB, then load grub from the Debian installed partition, advice Grub to take
the given grub.cfg on same partition.
* What outcome did you expect instead?
Installing Debian 12.5, then rebooting, Debian booting without hassles.
PS:
- Booting from the Debian installer disk is imnpossible:
-- Text-Mode: white screen, cursor upper left corner.
System shows no further actions.
-- Graphics mode: x-server terminates with errors: can't find a frame buffer
- Booting in Rescue mode is impossible to. Same problems as above.
It is possible to reproduce these Problems/Errors by booting with
- VirtualBox (all versions capable of booting in UEFI mode)
- VMware (all versions capable of booting in UEFI mode)
- on Hardware capable to boot in UEFI mode
After installing the new installer creates three partitions with gpt-
partitiontables:
- 1. EFI-Partition with type EF02 formated with fat32 (maybe this is wrong and
should be EF00?)
- 2. an ext4 partition for root ("/")
- 3. swap sized to hold complete ram the system has
Within this EFI-Partition all necessary binaries are installed into directory
"Debian". A second directory "boot" is empty.
-- Package-specific info:
*********************** BEGIN /proc/mounts
/dev/nvme0n1p4 / ext4 rw,noatime,discard 0 0
/dev/nvme0n1p3 /boot/efi vfat rw,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,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
search --no-floppy --fs-uuid --set=root cd07d628-9ada-4bdf-aa67-07e7e6f8c707
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=de_DE
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 ###
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root cd07d628-9ada-4bdf-aa67-07e7e6f8c707
insmod png
if background_image /usr/share/desktop-base/emerald-theme/grub/grub-16x9.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-cd07d628-9ada-4bdf-aa67-07e7e6f8c707' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root cd07d628-9ada-4bdf-aa67-07e7e6f8c707
echo 'Loading Linux 6.8.12-amd64 ...'
linux /boot/vmlinuz-6.8.12-amd64 root=UUID=cd07d628-9ada-4bdf-aa67-07e7e6f8c707 ro quiet splash resume=UUID=a9008ad1-6f65-4386-937d-01b4355ccc0a
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-6.8.12-amd64
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-cd07d628-9ada-4bdf-aa67-07e7e6f8c707' {
menuentry 'Debian GNU/Linux, with Linux 6.8.12-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.8.12-amd64-advanced-cd07d628-9ada-4bdf-aa67-07e7e6f8c707' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root cd07d628-9ada-4bdf-aa67-07e7e6f8c707
echo 'Loading Linux 6.8.12-amd64 ...'
linux /boot/vmlinuz-6.8.12-amd64 root=UUID=cd07d628-9ada-4bdf-aa67-07e7e6f8c707 ro quiet splash resume=UUID=a9008ad1-6f65-4386-937d-01b4355ccc0a
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-6.8.12-amd64
}
menuentry 'Debian GNU/Linux, with Linux 6.8.12-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.8.12-amd64-recovery-cd07d628-9ada-4bdf-aa67-07e7e6f8c707' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root cd07d628-9ada-4bdf-aa67-07e7e6f8c707
echo 'Loading Linux 6.8.12-amd64 ...'
linux /boot/vmlinuz-6.8.12-amd64 root=UUID=cd07d628-9ada-4bdf-aa67-07e7e6f8c707 ro single single dis_ucode_ldr
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-6.8.12-amd64
}
menuentry 'Debian GNU/Linux, with Linux 6.1.0-18-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.0-18-amd64-advanced-cd07d628-9ada-4bdf-aa67-07e7e6f8c707' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root cd07d628-9ada-4bdf-aa67-07e7e6f8c707
echo 'Loading Linux 6.1.0-18-amd64 ...'
linux /boot/vmlinuz-6.1.0-18-amd64 root=UUID=cd07d628-9ada-4bdf-aa67-07e7e6f8c707 ro quiet splash resume=UUID=a9008ad1-6f65-4386-937d-01b4355ccc0a
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-6.1.0-18-amd64
}
menuentry 'Debian GNU/Linux, with Linux 6.1.0-18-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.0-18-amd64-recovery-cd07d628-9ada-4bdf-aa67-07e7e6f8c707' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root cd07d628-9ada-4bdf-aa67-07e7e6f8c707
echo 'Loading Linux 6.1.0-18-amd64 ...'
linux /boot/vmlinuz-6.1.0-18-amd64 root=UUID=cd07d628-9ada-4bdf-aa67-07e7e6f8c707 ro single single dis_ucode_ldr
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-6.1.0-18-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/25_bli ###
if [ "$grub_platform" = "efi" ]; then
insmod bli
fi
### END /etc/grub.d/25_bli ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_uefi-firmware ###
if [ "$grub_platform" = "efi" ]; then
fwsetup --is-supported
if [ "$?" = 0 ]; then
menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
fwsetup
}
fi
fi
### 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
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
unused devices: <none>
*********************** END /proc/mdstat
*********************** BEGIN LVM
*********************** END LVM
*********************** BEGIN /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root 9 Jun 23 00:22 ata-VBOX_CD-ROM_VB1-1a2b3c4d -> ../../sr0
lrwxrwxrwx 1 root root 13 Jun 23 00:22 nvme-ORCL-VBOX-NVME-VER12_VB1234-56789 -> ../../nvme0n1
lrwxrwxrwx 1 root root 15 Jun 23 00:22 nvme-ORCL-VBOX-NVME-VER12_VB1234-56789-part2 -> ../../nvme0n1p2
lrwxrwxrwx 1 root root 15 Jun 23 00:22 nvme-ORCL-VBOX-NVME-VER12_VB1234-56789-part3 -> ../../nvme0n1p3
lrwxrwxrwx 1 root root 15 Jun 23 00:22 nvme-ORCL-VBOX-NVME-VER12_VB1234-56789-part4 -> ../../nvme0n1p4
lrwxrwxrwx 1 root root 15 Jun 23 00:22 nvme-ORCL-VBOX-NVME-VER12_VB1234-56789-part5 -> ../../nvme0n1p5
lrwxrwxrwx 1 root root 13 Jun 23 00:22 nvme-ORCL-VBOX-NVME-VER12_VB1234-56789_1 -> ../../nvme0n1
lrwxrwxrwx 1 root root 15 Jun 23 00:22 nvme-ORCL-VBOX-NVME-VER12_VB1234-56789_1-part2 -> ../../nvme0n1p2
lrwxrwxrwx 1 root root 15 Jun 23 00:22 nvme-ORCL-VBOX-NVME-VER12_VB1234-56789_1-part3 -> ../../nvme0n1p3
lrwxrwxrwx 1 root root 15 Jun 23 00:22 nvme-ORCL-VBOX-NVME-VER12_VB1234-56789_1-part4 -> ../../nvme0n1p4
lrwxrwxrwx 1 root root 15 Jun 23 00:22 nvme-ORCL-VBOX-NVME-VER12_VB1234-56789_1-part5 -> ../../nvme0n1p5
lrwxrwxrwx 1 root root 13 Jun 23 00:22 nvme-eui.ed676a258fa74c4b9367c8ce5854ba78 -> ../../nvme0n1
lrwxrwxrwx 1 root root 15 Jun 23 00:22 nvme-eui.ed676a258fa74c4b9367c8ce5854ba78-part2 -> ../../nvme0n1p2
lrwxrwxrwx 1 root root 15 Jun 23 00:22 nvme-eui.ed676a258fa74c4b9367c8ce5854ba78-part3 -> ../../nvme0n1p3
lrwxrwxrwx 1 root root 15 Jun 23 00:22 nvme-eui.ed676a258fa74c4b9367c8ce5854ba78-part4 -> ../../nvme0n1p4
lrwxrwxrwx 1 root root 15 Jun 23 00:22 nvme-eui.ed676a258fa74c4b9367c8ce5854ba78-part5 -> ../../nvme0n1p5
*********************** END /dev/disk/by-id
*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 9 Jun 23 00:22 2024-06-20-21-44-00-00 -> ../../sr0
lrwxrwxrwx 1 root root 15 Jun 23 00:22 C7D6-40C5 -> ../../nvme0n1p3
lrwxrwxrwx 1 root root 15 Jun 23 00:22 a9008ad1-6f65-4386-937d-01b4355ccc0a -> ../../nvme0n1p5
lrwxrwxrwx 1 root root 15 Jun 23 00:22 cd07d628-9ada-4bdf-aa67-07e7e6f8c707 -> ../../nvme0n1p4
*********************** END /dev/disk/by-uuid
-- System Information:
Debian Release: trixie/sid
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.1.0-18-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages grub-efi-amd64 depends on:
ii debconf [debconf-2.0] 1.5.86
ii grub-efi-amd64-bin 2.12-2
ii grub2-common 2.12-2
ii ucf 3.0043+nmu1
grub-efi-amd64 recommends no packages.
grub-efi-amd64 suggests no packages.
-- debconf information:
grub2/linux_cmdline_default: quiet splash resume=UUID=a9008ad1-6f65-4386-937d-01b4355ccc0a
grub2/linux_cmdline:
grub2/enable_os_prober: true
grub2/kfreebsd_cmdline_default: quiet
grub2/kfreebsd_cmdline:
grub2/update_nvram: true
grub2/force_efi_extra_removable: false
More information about the Pkg-grub-devel
mailing list