Bug#1040455: update-grub: when generating new grub.cfg entries from 40_custom not show as output on screen

mh m.hatzold at web.de
Thu Jul 6 09:03:23 BST 2023


Package: grub-pc
Version: 2.06-14
Severity: important

Dear Maintainer,

* What led up to the situation?
executing "update-grub" (os-prober disabled!)

* What exactly did you do (or not do) that was effective (or
     ineffective)?
"update-grub" as root (os-prober disabled!)

* What was the outcome of this action?
On screen (xterm) I saw all the installed kernels of system grub was
  running from. In addition all bootable siduction-live.iso files were
  listed and appended to the list (due to a script in
  /etc/grub.d/60_fll-fromiso). The entries defined in
  /etc/grub.d/40_custom did not appear in this on screen list.

This leads  to the seemingly obvious conclusion they were not found or
honoured. Only further investigation will show they had been copied to
/boot/grub/grub.cfg .

This is confusing behaviour as the user expects to see the outcome of
his action, i.e. the *complete* final result on screen (xterm), not
only a part of a list which gives the impression something has gone
wrong.

* What outcome did you expect instead?
Show the complete list with all entries as copied to /boot/grub/grub.cfg

I classified it as "important" as this bug gives the user the
(wrong but convincing) impression of not successfully working!

(I accidentally booted a Debian-siduction kernel, not the pure Debian
Kernel. The bug is always the same)


-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/sdb1 / ext4 rw,noatime 0 0
/dev/sdb3 /dtn/archiv ext4 rw,noatime 0 0
/dev/sdc5 /dtn/musik ext4 rw,noatime 0 0
/dev/sdc3 /dtn/soft_alt ext4 rw,noatime 0 0
/dev/sdc6 /dtn/vid ext4 rw,noatime 0 0
/dev/sda7 /dtn/rec ext4 rw,noatime 0 0
/dev/sda5 /home ext4 rw,noatime 0 0
/dev/sda2 /var ext4 rw,noatime 0 0
/dev/sda3 /var/cache/apt/archives ext4 rw,noatime 0 0
/dev/sda9 /var/cache/apt-cacher-ng ext4 rw,noatime 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(hd0)	/dev/disk/by-id/ata-SAMSUNG_SNR
(hd1)
/dev/disk/by-id/ata-Samsung_SSD_840_EVO_120GB_SNR
(hd2)	/dev/disk/by-id/ata-WDC_SNR
(hd3)	/dev/disk/by-id/ata-WDC_SNR
*********************** END /boot/grub/device.map

*********************** 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_msdos
insmod ext2
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1
--hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 --hint='hd1,msdos1'
 UUID-deleted else search
--no-floppy --fs-uuid --set=root
UUID-deleted fi
font="/usr/share/grub/unicode.pf2" fi

if loadfont $font ; then
  set gfxmode=1280x1024
  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/10_linux ###
function gfxmode {
	set gfxpayload="${1}"
}
set linux_gfx_mode=1280x1024
export linux_gfx_mode
menuentry 'siduction 2018.3.0 Patience (Xorg) GNU/Linux, with Linux
6.3.11-1-siduction-amd64' --class siduction --class gnu-linux --class
gnu --class os $menuentry_id_option
'gnulinux-6.3.11-1-siduction-amd64-advanced-UUID-deleted'
{ load_video gfxmode $linux_gfx_mode insmod gzio if [ x$grub_platform =
xxen ]; then insmod xzio; insmod lzopio; fi insmod part_msdos
	insmod ext2
	set root='hd1,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root
--hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1
--hint-baremetal=ahci1,msdos1 --hint='hd1,msdos1'
655268bd-541f-4863-a960-951dc0cdcb46 else search --no-floppy --fs-uuid
--set=root UUID-deleted fi
echo	'Loading Linux 6.3.11-1-siduction-amd64 ...' linux
/boot/vmlinuz-6.3.11-1-siduction-amd64
root=UUID=UUID-deleted ro  quiet
systemd.show_status=1 echo	'Loading initial ramdisk ...'
initrd	/boot/initrd.img-6.3.11-1-siduction-amd64 } menuentry
'siduction 2018.3.0 Patience (Xorg) GNU/Linux, with Linux
6.3.4-1-siduction-amd64' --class siduction --class gnu-linux --class
gnu --class os $menuentry_id_option
'gnulinux-6.3.4-1-siduction-amd64-advanced-UUID-deleted'
{ load_video gfxmode $linux_gfx_mode insmod gzio 0



More information about the Pkg-grub-devel mailing list