Bug#850241: grub2-common: EFI Boot Manager entry is lowercase "debian", which does not look nice

Moritz Schlarb schlarbm at uni-mainz.de
Thu Jan 5 10:16:57 UTC 2017


Package: grub2-common
Version: 2.02~beta2-22+deb8u1
Severity: minor

The label for the EFI Boot Manager entry in util/grub-install.c,
efi_distributor is taken from bootloader_id, which is taken from
config.grub_distributor, which is apparently lowercased somewhere along the
way, since in /etc/default/grub, it is normally written properly cased.

There's probably a plausible rationale for using the lowercased version within
the code, but for the "user-facing" EFI Boot Manager entry, using the properly
cased string would look much nicer, IMHO.



-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/sda2 / 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  17de9a68-83e4-4f50-b493-803321cd1a1a
else
  search --no-floppy --fs-uuid --set=root 17de9a68-83e4-4f50-b493-803321cd1a1a
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
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  17de9a68-83e4-4f50-b493-803321cd1a1a
else
  search --no-floppy --fs-uuid --set=root 17de9a68-83e4-4f50-b493-803321cd1a1a
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-
17de9a68-83e4-4f50-b493-803321cd1a1a' {
        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  17de9a68-83e4-4f50-b493-803321cd1a1a
        else
          search --no-floppy --fs-uuid --set=root
17de9a68-83e4-4f50-b493-803321cd1a1a
        fi
        echo    'Loading Linux 3.16.0-4-amd64 ...'
        linux   /boot/vmlinuz-3.16.0-4-amd64
root=UUID=17de9a68-83e4-4f50-b493-803321cd1a1a ro  quiet splash
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initrd.img-3.16.0-4-amd64
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-
advanced-17de9a68-83e4-4f50-b493-803321cd1a1a' {
        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-17de9a68-83e4-4f50-b493-803321cd1a1a' {
                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
17de9a68-83e4-4f50-b493-803321cd1a1a
                else
                  search --no-floppy --fs-uuid --set=root
17de9a68-83e4-4f50-b493-803321cd1a1a
                fi
                echo    'Loading Linux 3.16.0-4-amd64 ...'
                linux   /boot/vmlinuz-3.16.0-4-amd64
root=UUID=17de9a68-83e4-4f50-b493-803321cd1a1a ro  quiet splash
                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-17de9a68-83e4-4f50-b493-803321cd1a1a' {
                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
17de9a68-83e4-4f50-b493-803321cd1a1a
                else
                  search --no-floppy --fs-uuid --set=root
17de9a68-83e4-4f50-b493-803321cd1a1a
                fi
                echo    'Loading Linux 3.16.0-4-amd64 ...'
                linux   /boot/vmlinuz-3.16.0-4-amd64
root=UUID=17de9a68-83e4-4f50-b493-803321cd1a1a 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 /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root  9 Jan  2 09:54 ata-HL-DT-ST_DVD+_-RW_GHB0N_KEHEC6F1632
-> ../../sr0
lrwxrwxrwx 1 root root  9 Jan  2 09:54 ata-LITEONIT_LCS-256L9S-
11_2.5_7mm_256GB_TW03YYV3550855331490 -> ../../sda
lrwxrwxrwx 1 root root 10 Jan  2 09:54 ata-LITEONIT_LCS-256L9S-
11_2.5_7mm_256GB_TW03YYV3550855331490-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jan  2 09:54 ata-LITEONIT_LCS-256L9S-
11_2.5_7mm_256GB_TW03YYV3550855331490-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jan  2 09:54 ata-LITEONIT_LCS-256L9S-
11_2.5_7mm_256GB_TW03YYV3550855331490-part3 -> ../../sda3
lrwxrwxrwx 1 root root  9 Jan  2 09:54 wwn-0x5001480000000000 -> ../../sr0
*********************** END /dev/disk/by-id

*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Jan  2 09:54 17de9a68-83e4-4f50-b493-803321cd1a1a ->
.../../sda2
lrwxrwxrwx 1 root root 10 Jan  2 09:54 FC84-840B -> ../../sda1
lrwxrwxrwx 1 root root 10 Jan  2 09:54 ba87649d-af3b-4a2c-993d-dc6f161ecee1 ->
.../../sda3
*********************** END /dev/disk/by-uuid

-- System Information:
Debian Release: 8.6
  APT prefers stable-updates
  APT policy: (700, 'stable-updates'), (700, 'stable'), (60, 'testing')
Architecture: amd64 (x86_64)

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

Versions of packages grub2-common depends on:
ii  dpkg                1.17.27
ii  grub-common         2.02~beta2-22+deb8u1
ii  install-info        5.2.0.dfsg.1-6
ii  libc6               2.19-18+deb8u6
ii  libdevmapper1.02.1  2:1.02.90-2.2+deb8u1
ii  liblzma5            5.1.1alpha+20120614-2+b3

grub2-common recommends no packages.

grub2-common suggests no packages.



More information about the Pkg-grub-devel mailing list