Bug#1076723: grub-common: duplicate GNU/Linux in menuentry and submenu lines of /boot/grub/grub.cfg

Vincent Lefevre vincent at vinc17.net
Mon Jul 22 16:30:18 BST 2024


Package: grub-common
Version: 2.12-5
Severity: normal

After a recent grub2 upgrade, there are now duplicate "GNU/Linux"
in menuentry and submenu lines of /boot/grub/grub.cfg, e.g.

menuentry 'Debian GNU/Linux GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-f3a51d21-c3a1-405d-b0fb-b0b25662b752' {

submenu 'Advanced options for Debian GNU/Linux GNU/Linux' $menuentry_id_option 'gnulinux-advanced-f3a51d21-c3a1-405d-b0fb-b0b25662b752' {

-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/mapper/qaa--vg-root / ext4 rw,relatime,errors=remount-ro 0 0
/dev/nvme0n1p2 /boot ext2 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 88794e9d-6a1d-43b0-b055-0d9d81bc922c
    font="/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=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 88794e9d-6a1d-43b0-b055-0d9d81bc922c
insmod png
if background_image /grub/.background_cache.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 GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-f3a51d21-c3a1-405d-b0fb-b0b25662b752' {
	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 88794e9d-6a1d-43b0-b055-0d9d81bc922c
	echo	'Loading Linux 6.9.9-amd64 ...'
	linux	/vmlinuz-6.9.9-amd64 root=/dev/mapper/qaa--vg-root ro  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/initrd.img-6.9.9-amd64
}
submenu 'Advanced options for Debian GNU/Linux GNU/Linux' $menuentry_id_option 'gnulinux-advanced-f3a51d21-c3a1-405d-b0fb-b0b25662b752' {
	menuentry 'Debian GNU/Linux GNU/Linux, with Linux 6.9.9-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.9.9-amd64-advanced-f3a51d21-c3a1-405d-b0fb-b0b25662b752' {
		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 88794e9d-6a1d-43b0-b055-0d9d81bc922c
		echo	'Loading Linux 6.9.9-amd64 ...'
		linux	/vmlinuz-6.9.9-amd64 root=/dev/mapper/qaa--vg-root ro  quiet
		echo	'Loading initial ramdisk ...'
		initrd	/initrd.img-6.9.9-amd64
	}
	menuentry 'Debian GNU/Linux GNU/Linux, with Linux 6.9.9-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.9.9-amd64-recovery-f3a51d21-c3a1-405d-b0fb-b0b25662b752' {
		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 88794e9d-6a1d-43b0-b055-0d9d81bc922c
		echo	'Loading Linux 6.9.9-amd64 ...'
		linux	/vmlinuz-6.9.9-amd64 root=/dev/mapper/qaa--vg-root ro single dis_ucode_ldr 
		echo	'Loading initial ramdisk ...'
		initrd	/initrd.img-6.9.9-amd64
	}
	menuentry 'Debian GNU/Linux GNU/Linux, with Linux 6.7.12-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.7.12-amd64-advanced-f3a51d21-c3a1-405d-b0fb-b0b25662b752' {
		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 88794e9d-6a1d-43b0-b055-0d9d81bc922c
		echo	'Loading Linux 6.7.12-amd64 ...'
		linux	/vmlinuz-6.7.12-amd64 root=/dev/mapper/qaa--vg-root ro  quiet
		echo	'Loading initial ramdisk ...'
		initrd	/initrd.img-6.7.12-amd64
	}
	menuentry 'Debian GNU/Linux GNU/Linux, with Linux 6.7.12-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.7.12-amd64-recovery-f3a51d21-c3a1-405d-b0fb-b0b25662b752' {
		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 88794e9d-6a1d-43b0-b055-0d9d81bc922c
		echo	'Loading Linux 6.7.12-amd64 ...'
		linux	/vmlinuz-6.7.12-amd64 root=/dev/mapper/qaa--vg-root ro single dis_ucode_ldr 
		echo	'Loading initial ramdisk ...'
		initrd	/initrd.img-6.7.12-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/35_fwupd ###
### END /etc/grub.d/35_fwupd ###

### 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 10 2024-07-22 17:18:18 dm-name-nvme0n1p3_crypt -> ../../dm-0
lrwxrwxrwx 1 root root 10 2024-07-22 17:18:18 dm-name-qaa--vg-root -> ../../dm-1
lrwxrwxrwx 1 root root 10 2024-07-22 17:18:18 dm-name-qaa--vg-swap_1 -> ../../dm-2
lrwxrwxrwx 1 root root 10 2024-07-22 17:18:18 dm-uuid-CRYPT-LUKS2-3e44a71f064043d69a0c08f3508572cd-nvme0n1p3_crypt -> ../../dm-0
lrwxrwxrwx 1 root root 10 2024-07-22 17:18:18 dm-uuid-LVM-1toulFjtLIfBBRY0L9j340YzYRCKAvMdH8RaM3Fiwxu4JRQTOIt9UdcuSEYef0Ki -> ../../dm-2
lrwxrwxrwx 1 root root 10 2024-07-22 17:18:18 dm-uuid-LVM-1toulFjtLIfBBRY0L9j340YzYRCKAvMdtdIOPu6q4f3Bh1DPlYhlD2s3ELCRecqe -> ../../dm-1
lrwxrwxrwx 1 root root 10 2024-07-22 17:18:18 lvm-pv-uuid-d2u0zG-JtED-6GoM-HJRb-thsL-KIuC-wW76ej -> ../../dm-0
lrwxrwxrwx 1 root root 13 2024-07-22 17:18:04 nvme-PM9A1_NVMe_Samsung_1024GB__S6H2NX0W774360 -> ../../nvme0n1
lrwxrwxrwx 1 root root 15 2024-07-22 17:18:04 nvme-PM9A1_NVMe_Samsung_1024GB__S6H2NX0W774360-part1 -> ../../nvme0n1p1
lrwxrwxrwx 1 root root 15 2024-07-22 17:18:04 nvme-PM9A1_NVMe_Samsung_1024GB__S6H2NX0W774360-part2 -> ../../nvme0n1p2
lrwxrwxrwx 1 root root 15 2024-07-22 17:18:04 nvme-PM9A1_NVMe_Samsung_1024GB__S6H2NX0W774360-part3 -> ../../nvme0n1p3
lrwxrwxrwx 1 root root 13 2024-07-22 17:18:04 nvme-PM9A1_NVMe_Samsung_1024GB_______S6H2NX0W774360 -> ../../nvme0n1
lrwxrwxrwx 1 root root 15 2024-07-22 17:18:04 nvme-PM9A1_NVMe_Samsung_1024GB_______S6H2NX0W774360-part1 -> ../../nvme0n1p1
lrwxrwxrwx 1 root root 15 2024-07-22 17:18:04 nvme-PM9A1_NVMe_Samsung_1024GB_______S6H2NX0W774360-part2 -> ../../nvme0n1p2
lrwxrwxrwx 1 root root 15 2024-07-22 17:18:04 nvme-PM9A1_NVMe_Samsung_1024GB_______S6H2NX0W774360-part3 -> ../../nvme0n1p3
lrwxrwxrwx 1 root root 13 2024-07-22 17:18:04 nvme-PM9A1_NVMe_Samsung_1024GB_______S6H2NX0W774360_1 -> ../../nvme0n1
lrwxrwxrwx 1 root root 15 2024-07-22 17:18:04 nvme-PM9A1_NVMe_Samsung_1024GB_______S6H2NX0W774360_1-part1 -> ../../nvme0n1p1
lrwxrwxrwx 1 root root 15 2024-07-22 17:18:04 nvme-PM9A1_NVMe_Samsung_1024GB_______S6H2NX0W774360_1-part2 -> ../../nvme0n1p2
lrwxrwxrwx 1 root root 15 2024-07-22 17:18:04 nvme-PM9A1_NVMe_Samsung_1024GB_______S6H2NX0W774360_1-part3 -> ../../nvme0n1p3
lrwxrwxrwx 1 root root 13 2024-07-22 17:18:04 nvme-eui.36483230577743600025385800000001 -> ../../nvme0n1
lrwxrwxrwx 1 root root 15 2024-07-22 17:18:04 nvme-eui.36483230577743600025385800000001-part1 -> ../../nvme0n1p1
lrwxrwxrwx 1 root root 15 2024-07-22 17:18:04 nvme-eui.36483230577743600025385800000001-part2 -> ../../nvme0n1p2
lrwxrwxrwx 1 root root 15 2024-07-22 17:18:04 nvme-eui.36483230577743600025385800000001-part3 -> ../../nvme0n1p3
*********************** END /dev/disk/by-id

*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 15 2024-07-22 17:18:04 052D-2AFA -> ../../nvme0n1p1
lrwxrwxrwx 1 root root 15 2024-07-22 17:18:04 3e44a71f-0640-43d6-9a0c-08f3508572cd -> ../../nvme0n1p3
lrwxrwxrwx 1 root root 10 2024-07-22 17:18:18 7c0f0b95-40d8-4497-88ad-99a78039257b -> ../../dm-2
lrwxrwxrwx 1 root root 15 2024-07-22 17:18:04 88794e9d-6a1d-43b0-b055-0d9d81bc922c -> ../../nvme0n1p2
lrwxrwxrwx 1 root root 10 2024-07-22 17:18:18 f3a51d21-c3a1-405d-b0fb-b0b25662b752 -> ../../dm-1
*********************** END /dev/disk/by-uuid

-- System Information:
Debian Release: trixie/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable-debug'), (500, 'proposed-updates-debug'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.9.9-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=C.UTF-8, LC_CTYPE=C.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-common depends on:
ii  gettext-base        0.22.5-1
ii  libc6               2.39-4
ii  libdevmapper1.02.1  2:1.02.196-1+b1
ii  libefiboot1t64      38-3.1
ii  libefivar1t64       38-3.1
ii  libfreetype6        2.13.2+dfsg-1+b4
ii  libfuse3-3          3.14.0-6
ii  liblzma5            5.6.2-2

Versions of packages grub-common recommends:
ii  os-prober  1.82

Versions of packages grub-common suggests:
ii  console-setup  1.230
ii  desktop-base   12.0.6+nmu1
pn  grub-emu       <none>
pn  mtools         <none>
pn  multiboot-doc  <none>
pn  xorriso        <none>

-- no debconf information

-- 
Vincent Lefèvre <vincent at vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



More information about the Pkg-grub-devel mailing list