Bug#1040526: grub-pc: update-grub; 40_custom - visible feedback

mh m.hatzold at web.de
Fri Jul 7 11:02:54 BST 2023


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

Dear Maintainer,

This is a followup to bug 1040455 (closed now) as a wishlist bug:

Please change the template 40_custom in a way that users get a visible
feedback for their entries when running update-grub.

A somewhat skilled user might be able to create a new menuentry in
/ect/grub.d/*40_custom. But making something like
"menuentry 'what-name-ever'"
visible as on screen output (like all other kernels found by other
scripts under /etc/40_custom) needs too much scripting skills for
average users. So please enhance the existing script template
accordingly (upstream) to show some usefull feedback / visible output.

Michael


-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/sdb1 / ext4 rw,noatime 0 0
/dev/sdb3 /dtn/archiv 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/sdc5 /dtn/musik 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/sda9 /var/cache/apt-cacher-ng ext4 rw,noatime 0 0
/dev/sda3 /var/cache/apt/archives ext4 rw,noatime 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(hd0)	/dev/disk/by-id/ata-SAMSUNG_HM320II_S1X4J9CB302135
(hd1)
/dev/disk/by-id/ata-Samsung_SSD_840_EVO_120GB_S1D5NSAF622954R
(hd2)	/dev/disk/by-id/ata-WDC_WD5000AVDS-63U7B0_WD-WCAV95203084
(hd3)	/dev/disk/by-id/ata-WDC_WD10EFRX-68FYTN0_WD-WCC4J4CPT7VA
*********************** 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'
 655268bd-541f-4863-a960-951dc0cdcb46 else search --no-floppy --fs-uuid
--set=root 655268bd-541f-4863-a960-951dc0cdcb46 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-655268bd-541f-4863-a960-951dc0cdcb46'
{ 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 655268bd-541f-4863-a960-951dc0cdcb46 fi echo	'Loading
Linux 6.3.11-1-siduction-amd64 ...' linux
/boot/vmlinuz-6.3.11-1-siduction-amd64
root=UUID=655268bd-541f-4863-a960-951dc0cdcb46 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-655268bd-541f-4863-a960-951dc0cdcb46'
{ 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 655268bd-541f-4863-a960-951dc0cdcb46 fi echo	'Loading
Linux 6.3.4-1-siduction-amd64 ...' linux



More information about the Pkg-grub-devel mailing list