Package: grub-efi-amd64-bin
Version: 2.06-13
Severity: important
X-Debbugs-Cc: snguyens...@gmail.com

Dear Maintainer,

I am not sure if this bug is already fixed by a newer version than 2.06-13 but 
it does not seems to be reported (though a similar one exists) at the moment. 
Plus I am running debian-stable and have no intention to move to testing or 
unstable, so I hope for a backport or security patch.

The problem is the following:

After installing a large amount of apt packages I realized that my menu entry 
for UEFI-firmware disappeared from grub boot menu though 30_uefi-firmware is 
still present.
update-grub will not resolve the problem.
If the entry is added by editing /boot/grub/grub.cfg the next time update-grub 
is executed the menu entry is removed.
30_uefi-firmware seems to be ok and contains:
#! /bin/sh
set -e

# grub-mkconfig helper script.
# Copyright (C) 2020  Free Software Foundation, Inc.
#
# GRUB is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# GRUB is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GRUB.  If not, see <http://www.gnu.org/licenses/>.

prefix="/usr"
exec_prefix="/usr"
datarootdir="/usr/share"

export TEXTDOMAIN=grub
export TEXTDOMAINDIR="${datarootdir}/locale"

. "$pkgdatadir/grub-mkconfig_lib"

EFI_VARS_DIR=/sys/firmware/efi/efivars
EFI_GLOBAL_VARIABLE=8be4df61-93ca-11d2-aa0d-00e098032b8c
OS_INDICATIONS="$EFI_VARS_DIR/OsIndicationsSupported-$EFI_GLOBAL_VARIABLE"

if [ -e "$OS_INDICATIONS" ] && \
   [ "$(( $(printf 0x%x \'"$(cat $OS_INDICATIONS | cut -b5)"\') & 1 ))" = 1 ]; 
then
  LABEL="UEFI Firmware Settings"

  gettext_printf "Adding boot menu entry for UEFI Firmware Settings ...\n" >&2

  cat << EOF
menuentry '$LABEL' \$menuentry_id_option 'uefi-firmware' {
        fwsetup
}
EOF
fi

-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/nvme0n1p2 / ext4 rw,relatime,errors=remount-ro 0 0
/dev/nvme0n1p3 /var ext4 rw,relatime 0 0
/dev/nvme0n1p5 /tmp ext4 rw,relatime 0 0
/dev/nvme0n1p6 /home ext4 rw,relatime 0 0
/dev/nvme0n1p1 /boot/efi vfat 
rw,relatime,fmask=0077,dmask=0077,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 ed1f3d9e-2055-465f-90ae-72696f2ea04a
    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=fr_FR
  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-ed1f3d9e-2055-465f-90ae-72696f2ea04a' {
        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 
ed1f3d9e-2055-465f-90ae-72696f2ea04a
        echo    'Loading Linux 6.1.0-10-rt-amd64 ...'
        linux   /boot/vmlinuz-6.1.0-10-rt-amd64 
root=UUID=ed1f3d9e-2055-465f-90ae-72696f2ea04a ro  quiet
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initrd.img-6.1.0-10-rt-amd64
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 
'gnulinux-advanced-ed1f3d9e-2055-465f-90ae-72696f2ea04a' {
        menuentry 'Debian GNU/Linux, with Linux 6.1.0-10-rt-amd64' --class 
debian --class gnu-linux --class gnu --class os $menuentry_id_option 
'gnulinux-6.1.0-10-rt-amd64-advanced-ed1f3d9e-2055-465f-90ae-72696f2ea04a' {
                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 
ed1f3d9e-2055-465f-90ae-72696f2ea04a
                echo    'Loading Linux 6.1.0-10-rt-amd64 ...'
                linux   /boot/vmlinuz-6.1.0-10-rt-amd64 
root=UUID=ed1f3d9e-2055-465f-90ae-72696f2ea04a ro  quiet
                echo    'Loading initial ramdisk ...'
                initrd  /boot/initrd.img-6.1.0-10-rt-amd64
        }
        menuentry 'Debian GNU/Linux, with Linux 6.1.0-10-rt-amd64 (recovery 
mode)' --class debian --class gnu-linux --class gnu --class os 
$menuentry_id_option 
'gnulinux-6.1.0-10-rt-amd64-recovery-ed1f3d9e-2055-465f-90ae-72696f2ea04a' {
                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 
ed1f3d9e-2055-465f-90ae-72696f2ea04a
                echo    'Loading Linux 6.1.0-10-rt-amd64 ...'
                linux   /boot/vmlinuz-6.1.0-10-rt-amd64 
root=UUID=ed1f3d9e-2055-465f-90ae-72696f2ea04a ro single 
                echo    'Loading initial ramdisk ...'
                initrd  /boot/initrd.img-6.1.0-10-rt-amd64
        }
        menuentry 'Debian GNU/Linux, with Linux 6.1.0-10-amd64' --class debian 
--class gnu-linux --class gnu --class os $menuentry_id_option 
'gnulinux-6.1.0-10-amd64-advanced-ed1f3d9e-2055-465f-90ae-72696f2ea04a' {
                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 
ed1f3d9e-2055-465f-90ae-72696f2ea04a
                echo    'Loading Linux 6.1.0-10-amd64 ...'
                linux   /boot/vmlinuz-6.1.0-10-amd64 
root=UUID=ed1f3d9e-2055-465f-90ae-72696f2ea04a ro  quiet
                echo    'Loading initial ramdisk ...'
                initrd  /boot/initrd.img-6.1.0-10-amd64
        }
        menuentry 'Debian GNU/Linux, with Linux 6.1.0-10-amd64 (recovery mode)' 
--class debian --class gnu-linux --class gnu --class os $menuentry_id_option 
'gnulinux-6.1.0-10-amd64-recovery-ed1f3d9e-2055-465f-90ae-72696f2ea04a' {
                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 
ed1f3d9e-2055-465f-90ae-72696f2ea04a
                echo    'Loading Linux 6.1.0-10-amd64 ...'
                linux   /boot/vmlinuz-6.1.0-10-amd64 
root=UUID=ed1f3d9e-2055-465f-90ae-72696f2ea04a ro single 
                echo    'Loading initial ramdisk ...'
                initrd  /boot/initrd.img-6.1.0-10-amd64
        }
        menuentry 'Debian GNU/Linux, with Linux 6.1.0-9-amd64' --class debian 
--class gnu-linux --class gnu --class os $menuentry_id_option 
'gnulinux-6.1.0-9-amd64-advanced-ed1f3d9e-2055-465f-90ae-72696f2ea04a' {
                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 
ed1f3d9e-2055-465f-90ae-72696f2ea04a
                echo    'Loading Linux 6.1.0-9-amd64 ...'
                linux   /boot/vmlinuz-6.1.0-9-amd64 
root=UUID=ed1f3d9e-2055-465f-90ae-72696f2ea04a ro  quiet
                echo    'Loading initial ramdisk ...'
                initrd  /boot/initrd.img-6.1.0-9-amd64
        }
        menuentry 'Debian GNU/Linux, with Linux 6.1.0-9-amd64 (recovery mode)' 
--class debian --class gnu-linux --class gnu --class os $menuentry_id_option 
'gnulinux-6.1.0-9-amd64-recovery-ed1f3d9e-2055-465f-90ae-72696f2ea04a' {
                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 
ed1f3d9e-2055-465f-90ae-72696f2ea04a
                echo    'Loading Linux 6.1.0-9-amd64 ...'
                linux   /boot/vmlinuz-6.1.0-9-amd64 
root=UUID=ed1f3d9e-2055-465f-90ae-72696f2ea04a ro single 
                echo    'Loading initial ramdisk ...'
                initrd  /boot/initrd.img-6.1.0-9-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 ###
### 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

-- System Information:
Debian Release: 12.0
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-10-rt-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.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-bin depends on:
ii  grub-common  2.06-13

Versions of packages grub-efi-amd64-bin recommends:
ii  efibootmgr             17-2
ii  grub-efi-amd64-signed  1+2.06+13

grub-efi-amd64-bin suggests no packages.

-- no debconf information

Reply via email to