Bug#721139: grub2-common: allow case-aware bootloader IDs
IOhannes m zmoelnig
zmoelnig at iem.at
Wed Aug 28 12:45:22 UTC 2013
Package: grub2-common
Version: 2.00-18
Severity: wishlist
Dear Maintainer,
i'm using grub2 on an EFI system, that dual-boots into w32.
now grub installs a new EFI entry named "debian".
given that all other EFI entries are either all upper-case (e.g. "USB FDD:") or
mixed case (e.g. "Windows Boot Manager"), the lower-case "debian" sticks out a
little bit in an unpleasant way.
the reason seems to be the line
> bootloader_id="$(echo "$GRUB_DISTRIBUTOR" | tr 'A-Z' 'a-z' | cut -d' ' -f1)"
in /urs/sbin/grub-install.
Whenever you find time, it would be nice if you would allow the bootloader ID to
contained mixed cases (and eventually even spaces).
e.g. by adding another variable to /etc/default/grub, like
BOOTLOADER_ID="Debian/GNU"
that would override the automatically generated bootloader_id.
fmadr
IOhannes
-- Package-specific info:
*********************** BEGIN /proc/mounts
/dev/disk/by-uuid/dbbada09-2df9-423f-8628-2fa5cf8e5c8c / 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
}
}
### 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 28 13:56 ata-ST9500325AS_S2W0ED1G -> ../../sda
lrwxrwxrwx 1 root root 10 Aug 28 13:56 ata-ST9500325AS_S2W0ED1G-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Aug 28 13:56 ata-ST9500325AS_S2W0ED1G-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Aug 28 13:56 ata-ST9500325AS_S2W0ED1G-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Aug 28 13:56 ata-ST9500325AS_S2W0ED1G-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 Aug 28 13:56 ata-ST9500325AS_S2W0ED1G-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Aug 28 13:56 ata-ST9500325AS_S2W0ED1G-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 Aug 28 13:56 ata-ST9500325AS_S2W0ED1G-part7 -> ../../sda7
lrwxrwxrwx 1 root root 10 Aug 28 13:56 ata-ST9500325AS_S2W0ED1G-part8 -> ../../sda8
lrwxrwxrwx 1 root root 9 Aug 28 13:56 scsi-SATA_ST9500325AS_S2W0ED1G -> ../../sda
lrwxrwxrwx 1 root root 10 Aug 28 13:56 scsi-SATA_ST9500325AS_S2W0ED1G-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Aug 28 13:56 scsi-SATA_ST9500325AS_S2W0ED1G-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Aug 28 13:56 scsi-SATA_ST9500325AS_S2W0ED1G-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Aug 28 13:56 scsi-SATA_ST9500325AS_S2W0ED1G-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 Aug 28 13:56 scsi-SATA_ST9500325AS_S2W0ED1G-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Aug 28 13:56 scsi-SATA_ST9500325AS_S2W0ED1G-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 Aug 28 13:56 scsi-SATA_ST9500325AS_S2W0ED1G-part7 -> ../../sda7
lrwxrwxrwx 1 root root 10 Aug 28 13:56 scsi-SATA_ST9500325AS_S2W0ED1G-part8 -> ../../sda8
lrwxrwxrwx 1 root root 9 Aug 28 14:15 usb-TSSTcorp_CDDVDW_SE-208AB_R8KN6GAC500PK7-0:0 -> ../../sr0
lrwxrwxrwx 1 root root 9 Aug 28 13:56 wwn-0x5000c5003dfbd63a -> ../../sda
lrwxrwxrwx 1 root root 10 Aug 28 13:56 wwn-0x5000c5003dfbd63a-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Aug 28 13:56 wwn-0x5000c5003dfbd63a-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Aug 28 13:56 wwn-0x5000c5003dfbd63a-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Aug 28 13:56 wwn-0x5000c5003dfbd63a-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 Aug 28 13:56 wwn-0x5000c5003dfbd63a-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Aug 28 13:56 wwn-0x5000c5003dfbd63a-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 Aug 28 13:56 wwn-0x5000c5003dfbd63a-part7 -> ../../sda7
lrwxrwxrwx 1 root root 10 Aug 28 13:56 wwn-0x5000c5003dfbd63a-part8 -> ../../sda8
*********************** END /dev/disk/by-id
*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Aug 28 13:56 6b3b74df-0b48-4fe7-9a3c-27d567a44688 -> ../../sda5
lrwxrwxrwx 1 root root 10 Aug 28 13:56 A2C2-821A -> ../../sda1
lrwxrwxrwx 1 root root 10 Aug 28 13:56 F250CF7C50CF4657 -> ../../sda3
lrwxrwxrwx 1 root root 10 Aug 28 13:56 a7bfa2c1-bb5b-4332-9ef8-565337eb0df7 -> ../../sda7
lrwxrwxrwx 1 root root 10 Aug 28 13:56 d96580ea-466d-4a19-a869-fb36c9881e87 -> ../../sda6
lrwxrwxrwx 1 root root 10 Aug 28 13:56 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 grub2-common depends on:
ii dpkg 1.17.1
ii grub-common 2.00-18
ii install-info 5.1.dfsg.1-4
grub2-common recommends no packages.
grub2-common suggests no packages.
-- no debconf information
More information about the Pkg-grub-devel
mailing list