(re-SOLVED) Linux Mint 21 GRUB edit question - don't know how to set up grub menu

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
User avatar
Kris345
Level 5
Level 5
Posts: 548
Joined: Mon Jun 22, 2020 10:22 am
Location: New England

Re: Linux Mint 21 GRUB edit question - don't know how to set up grub menu

Post by Kris345 »

Simply edit /boot/grub/grub.cfg

Easy.
Done.
-- ASUS Prime Z790-V WIFI, I9-12900k, GeForce RTX™ 3060 Ti VISION OC 8G, UEFI/GPT, 32GB, Sam 980 Pro 1T M.2 .
-laserjets: HP M254dw color, HP P1606dn. Epson Perfection 2480 flatbed scanner -
User avatar
Pjotr
Level 24
Level 24
Posts: 20124
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: Linux Mint 21 GRUB edit question - don't know how to set up grub menu

Post by Pjotr »

Kris345 wrote: Wed Aug 10, 2022 4:43 pm Simply edit /boot/grub/grub.cfg

Easy.
Done.
Yeah, for now. After the next Grub update (e.g. new kernel or new Grub), you can start all over again. :wink:
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
User avatar
Kris345
Level 5
Level 5
Posts: 548
Joined: Mon Jun 22, 2020 10:22 am
Location: New England

Re: Linux Mint 21 GRUB edit question - don't know how to set up grub menu

Post by Kris345 »

Pjotr wrote: Wed Aug 10, 2022 4:54 pm
Kris345 wrote: Wed Aug 10, 2022 4:43 pm Simply edit /boot/grub/grub.cfg

Easy.
Done.
Yeah, for now. After the next Grub update (e.g. new kernel or new Grub), you can start all over again. :wink:
AH but I finally realized that "starting all over again" simply means a 30 second edit and done.
-- ASUS Prime Z790-V WIFI, I9-12900k, GeForce RTX™ 3060 Ti VISION OC 8G, UEFI/GPT, 32GB, Sam 980 Pro 1T M.2 .
-laserjets: HP M254dw color, HP P1606dn. Epson Perfection 2480 flatbed scanner -
User avatar
Neophyte
Level 4
Level 4
Posts: 257
Joined: Sun Sep 27, 2015 10:49 pm

Re: (SOLVED) Linux Mint 21 GRUB edit question - don't know how to set up grub menu

Post by Neophyte »

I never had an issue with just doing a (mostly) clean reinstall, just making sure to not overwrite or format "/home."
Patience is a virtue, but there are no saints left in this world.
User avatar
Pjotr
Level 24
Level 24
Posts: 20124
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: Linux Mint 21 GRUB edit question - don't know how to set up grub menu

Post by Pjotr »

Kris345 wrote: Wed Aug 10, 2022 5:00 pm AH but I finally realized that "starting all over again" simply means a 30 second edit and done.
No doubt that must have been a happy moment. :lol:
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
User avatar
Kris345
Level 5
Level 5
Posts: 548
Joined: Mon Jun 22, 2020 10:22 am
Location: New England

Re: (SOLVED) Linux Mint 21 GRUB edit question - don't know how to set up grub menu

Post by Kris345 »

You got that right! Wish somebody had told me that straight-off!
-- ASUS Prime Z790-V WIFI, I9-12900k, GeForce RTX™ 3060 Ti VISION OC 8G, UEFI/GPT, 32GB, Sam 980 Pro 1T M.2 .
-laserjets: HP M254dw color, HP P1606dn. Epson Perfection 2480 flatbed scanner -
User avatar
SMG
Level 25
Level 25
Posts: 31948
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Linux Mint 21 GRUB edit question - don't know how to set up grub menu

Post by SMG »

Kris345 wrote: Wed Aug 10, 2022 4:43 pm Simply edit /boot/grub/grub.cfg

Easy.
Done.
The one that says this at the top? :lol:

Code: Select all

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
I'm just teasing. Your situation is different because of grub customizer.

I responded to someone who could not figure out why their grub changes weren't being used. The reason ended up being they changed this file instead of /etc/default/grub. (They were not using Grub Customizer.)
Image
A woman typing on a laptop with LM20.3 Cinnamon.
User avatar
Kris345
Level 5
Level 5
Posts: 548
Joined: Mon Jun 22, 2020 10:22 am
Location: New England

Re: Linux Mint 21 GRUB edit question - don't know how to set up grub menu

Post by Kris345 »

SMG wrote: Wed Aug 10, 2022 6:00 pm
Kris345 wrote: Wed Aug 10, 2022 4:43 pm Simply edit /boot/grub/grub.cfg

Easy.
Done.
The one that says this at the top? :lol:

Code: Select all

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
I'm just teasing. Your situation is different because of grub customizer.

I responded to someone who could not figure out why their grub changes weren't being used. The reason ended up being they changed this file instead of /etc/default/grub. (They were not using Grub Customizer.)
LOL - however, it does not hold past the next boot, so, apparently, Mint does a mini update-grub on each boot.

Also,
sudo grub-install /dev/nvme0n1
sudo update-grub

changes nothing. no way that I can find that clears that old stuff from the proxies. Oh well!
-- ASUS Prime Z790-V WIFI, I9-12900k, GeForce RTX™ 3060 Ti VISION OC 8G, UEFI/GPT, 32GB, Sam 980 Pro 1T M.2 .
-laserjets: HP M254dw color, HP P1606dn. Epson Perfection 2480 flatbed scanner -
User avatar
SMG
Level 25
Level 25
Posts: 31948
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Linux Mint 21 GRUB edit question - don't know how to set up grub menu

Post by SMG »

Kris345 wrote: Wed Aug 10, 2022 6:56 pmLOL - however, it does not hold past the next boot, so, apparently, Mint does a mini update-grub on each boot.
The text does say that file is auto-generated. Apparently, it is true.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
User avatar
Kris345
Level 5
Level 5
Posts: 548
Joined: Mon Jun 22, 2020 10:22 am
Location: New England

Re: (SOLVED) Linux Mint 21 GRUB edit question - don't know how to set up grub menu

Post by Kris345 »

To protect itself from people like me. I wonder what script it uses.
-- ASUS Prime Z790-V WIFI, I9-12900k, GeForce RTX™ 3060 Ti VISION OC 8G, UEFI/GPT, 32GB, Sam 980 Pro 1T M.2 .
-laserjets: HP M254dw color, HP P1606dn. Epson Perfection 2480 flatbed scanner -
User avatar
Kris345
Level 5
Level 5
Posts: 548
Joined: Mon Jun 22, 2020 10:22 am
Location: New England

Re: (re-SOLVED) Linux Mint 21 GRUB edit question - don't know how to set up grub menu

Post by Kris345 »

The script is apparently
/etc/grub.d.proxifiedScripts/custom

If I change the first entry in there (named ubuntu) to the latest kern, It boots to that and survives through boot.

However, /boot/grub/grub.cfg looks terrible: says 46,46,46,43 etc. HOWEVER, when I boot, menu looks correct...

Code: Select all

#
# 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 [ "${initrdfail}" = 2 ]; then
   set initrdfail=
elif [ "${initrdfail}" = 1 ]; then
   set next_entry="${prev_entry}"
   set prev_entry=
   save_env prev_entry
   if [ "${next_entry}" ]; then
      set initrdfail=2
   fi
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="${saved_entry}"
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 initrdfail {
    if [ -n "${have_grubenv}" ]; then if [ -n "${partuuid}" ]; then
      if [ -z "${initrdfail}" ]; then
        set initrdfail=1
        if [ -n "${boot_once}" ]; then
          set prev_entry="${default}"
          save_env prev_entry
        fi
      fi
      save_env initrdfail
    fi; fi
}
function recordfail {
  set recordfail=1
  if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; 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 b9acad1f-1759-4bbd-9e24-63d1e3abbb47
    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=en_US
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=30
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=hidden
    set timeout=6
  # Fallback hidden-timeout code in case the timeout_style feature is
  # unavailable.
  elif sleep --interruptible 6 ; then
    set timeout=0
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/06_linux_proxy ###

function gfxmode {
	set gfxpayload="${1}"
	if [ "${1}" = "keep" ]; then
		set vt_handoff=vt.handoff=7
	else
		set vt_handoff=
	fi
}
if [ "${recordfail}" != 1 ]; then
  if [ -e ${prefix}/gfxblacklist.txt ]; then
    if [ ${grub_platform} != pc ]; then
      set linux_gfx_mode=keep
    elif hwmatch ${prefix}/gfxblacklist.txt 3; then
      if [ ${match} = 0 ]; then
        set linux_gfx_mode=keep
      else
        set linux_gfx_mode=text
      fi
    else
      set linux_gfx_mode=text
    fi
  else
    set linux_gfx_mode=keep
  fi
else
  set linux_gfx_mode=text
fi
export linux_gfx_mode



### END /etc/grub.d/06_linux_proxy ###

### BEGIN /etc/grub.d/35_fwupd ###
### END /etc/grub.d/35_fwupd ###

### BEGIN /etc/grub.d/40_custom_proxy ###
menuentry "Ubuntu" --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-b9acad1f-1759-4bbd-9e24-63d1e3abbb47' {
		recordfail
	savedefault
		load_video
		gfxmode $linux_gfx_mode
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root  b9acad1f-1759-4bbd-9e24-63d1e3abbb47
		else
		  search --no-floppy --fs-uuid --set=root b9acad1f-1759-4bbd-9e24-63d1e3abbb47
		fi
		echo	'Loading Linux 5.15.0-46-generic ...'
		linux	/boot/vmlinuz-5.15.0-46-generic root=UUID=b9acad1f-1759-4bbd-9e24-63d1e3abbb47 ro  quiet splash $vt_handoff
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-5.15.0-46-generic
}
### END /etc/grub.d/40_custom_proxy ###

### BEGIN /etc/grub.d/41_linux_proxy ###
submenu "Advanced options for Ubuntu"{
menuentry "Ubuntu, with Linux 5.15.0-46-generic" --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.15.0-46-generic-advanced-b9acad1f-1759-4bbd-9e24-63d1e3abbb47' {
		recordfail
	savedefault
		load_video
		gfxmode $linux_gfx_mode
		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 b9acad1f-1759-4bbd-9e24-63d1e3abbb47
		echo	'Loading Linux 5.15.0-46-generic ...'
		linux	/boot/vmlinuz-5.15.0-46-generic root=UUID=b9acad1f-1759-4bbd-9e24-63d1e3abbb47 ro  quiet splash $vt_handoff
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-5.15.0-46-generic
}
menuentry "Ubuntu, with Linux 5.15.0-46-generic (recovery mode)" --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.15.0-46-generic-recovery-b9acad1f-1759-4bbd-9e24-63d1e3abbb47' {
		recordfail
		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 b9acad1f-1759-4bbd-9e24-63d1e3abbb47
		echo	'Loading Linux 5.15.0-46-generic ...'
		linux	/boot/vmlinuz-5.15.0-46-generic root=UUID=b9acad1f-1759-4bbd-9e24-63d1e3abbb47 ro recovery nomodeset dis_ucode_ldr 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-5.15.0-46-generic
}
menuentry "Ubuntu, with Linux 5.15.0-43-generic" --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.15.0-43-generic-advanced-b9acad1f-1759-4bbd-9e24-63d1e3abbb47' {
		recordfail
	savedefault
		load_video
		gfxmode $linux_gfx_mode
		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 b9acad1f-1759-4bbd-9e24-63d1e3abbb47
		echo	'Loading Linux 5.15.0-43-generic ...'
		linux	/boot/vmlinuz-5.15.0-43-generic root=UUID=b9acad1f-1759-4bbd-9e24-63d1e3abbb47 ro  quiet splash $vt_handoff
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-5.15.0-43-generic
}
menuentry "Ubuntu, with Linux 5.15.0-43-generic (recovery mode)" --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.15.0-43-generic-recovery-b9acad1f-1759-4bbd-9e24-63d1e3abbb47' {
		recordfail
		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 b9acad1f-1759-4bbd-9e24-63d1e3abbb47
		echo	'Loading Linux 5.15.0-43-generic ...'
		linux	/boot/vmlinuz-5.15.0-43-generic root=UUID=b9acad1f-1759-4bbd-9e24-63d1e3abbb47 ro recovery nomodeset dis_ucode_ldr 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-5.15.0-43-generic
}
menuentry "Ubuntu, with Linux 5.4.0-122-generic" --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-122-generic-advanced-b9acad1f-1759-4bbd-9e24-63d1e3abbb47' {
		recordfail
	savedefault
		load_video
		gfxmode $linux_gfx_mode
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root  b9acad1f-1759-4bbd-9e24-63d1e3abbb47
		else
		  search --no-floppy --fs-uuid --set=root b9acad1f-1759-4bbd-9e24-63d1e3abbb47
		fi
		echo	'Loading Linux 5.4.0-122-generic ...'
		linux	/boot/vmlinuz-5.4.0-122-generic root=UUID=b9acad1f-1759-4bbd-9e24-63d1e3abbb47 ro  quiet splash $vt_handoff
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-5.4.0-122-generic
}
menuentry "Ubuntu, with Linux 5.4.0-99-generic" --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-99-generic-advanced-b9acad1f-1759-4bbd-9e24-63d1e3abbb47' {
		recordfail
	savedefault
		load_video
		gfxmode $linux_gfx_mode
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root  b9acad1f-1759-4bbd-9e24-63d1e3abbb47
		else
		  search --no-floppy --fs-uuid --set=root b9acad1f-1759-4bbd-9e24-63d1e3abbb47
		fi
		echo	'Loading Linux 5.4.0-99-generic ...'
		linux	/boot/vmlinuz-5.4.0-99-generic root=UUID=b9acad1f-1759-4bbd-9e24-63d1e3abbb47 ro  quiet splash $vt_handoff
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-5.4.0-99-generic
}
menuentry "Ubuntu, with Linux 5.4.0-97-generic" --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-97-generic-advanced-b9acad1f-1759-4bbd-9e24-63d1e3abbb47' {
		recordfail
		load_video
		gfxmode $linux_gfx_mode
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root  b9acad1f-1759-4bbd-9e24-63d1e3abbb47
		else
		  search --no-floppy --fs-uuid --set=root b9acad1f-1759-4bbd-9e24-63d1e3abbb47
		fi
		echo	'Loading Linux 5.4.0-97-generic ...'
		linux	/boot/vmlinuz-5.4.0-97-generic root=UUID=b9acad1f-1759-4bbd-9e24-63d1e3abbb47 ro  quiet splash $vt_handoff
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-5.4.0-97-generic
}
menuentry "Ubuntu, with Linux 5.4.0-96-generic" --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-96-generic-advanced-b9acad1f-1759-4bbd-9e24-63d1e3abbb47' {
		recordfail
		load_video
		gfxmode $linux_gfx_mode
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root  b9acad1f-1759-4bbd-9e24-63d1e3abbb47
		else
		  search --no-floppy --fs-uuid --set=root b9acad1f-1759-4bbd-9e24-63d1e3abbb47
		fi
		echo	'Loading Linux 5.4.0-96-generic ...'
		linux	/boot/vmlinuz-5.4.0-96-generic root=UUID=b9acad1f-1759-4bbd-9e24-63d1e3abbb47 ro  quiet splash $vt_handoff
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-5.4.0-96-generic
}
menuentry "Ubuntu, with Linux 5.4.0-94-generic" --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-94-generic-advanced-b9acad1f-1759-4bbd-9e24-63d1e3abbb47' {
		recordfail
		load_video
		gfxmode $linux_gfx_mode
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root  b9acad1f-1759-4bbd-9e24-63d1e3abbb47
		else
		  search --no-floppy --fs-uuid --set=root b9acad1f-1759-4bbd-9e24-63d1e3abbb47
		fi
		echo	'Loading Linux 5.4.0-94-generic ...'
		linux	/boot/vmlinuz-5.4.0-94-generic root=UUID=b9acad1f-1759-4bbd-9e24-63d1e3abbb47 ro  quiet splash $vt_handoff
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-5.4.0-94-generic
}
menuentry "Ubuntu, with Linux 5.4.0-92-generic" --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-92-generic-advanced-b9acad1f-1759-4bbd-9e24-63d1e3abbb47' {
		recordfail
	savedefault
		load_video
		gfxmode $linux_gfx_mode
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root  b9acad1f-1759-4bbd-9e24-63d1e3abbb47
		else
		  search --no-floppy --fs-uuid --set=root b9acad1f-1759-4bbd-9e24-63d1e3abbb47
		fi
		echo	'Loading Linux 5.4.0-92-generic ...'
		linux	/boot/vmlinuz-5.4.0-92-generic root=UUID=b9acad1f-1759-4bbd-9e24-63d1e3abbb47 ro  quiet splash $vt_handoff
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-5.4.0-92-generic
}
}
### END /etc/grub.d/41_linux_proxy ###

### BEGIN /etc/grub.d/42_linux_zfs ###
### END /etc/grub.d/42_linux_zfs ###

### BEGIN /etc/grub.d/43_linux_xen ###

### END /etc/grub.d/43_linux_xen ###

### BEGIN /etc/grub.d/44_os-prober ###
menuentry 'Windows Boot Manager (on /dev/nvme0n1p1)' --class windows --class os $menuentry_id_option 'osprober-efi-D8D1-F36E' {
	savedefault
	insmod part_gpt
	insmod fat
	search --no-floppy --fs-uuid --set=root D8D1-F36E
	chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
set timeout_style=menu
if [ "${timeout}" = 0 ]; then
  set timeout=10
fi
### END /etc/grub.d/44_os-prober ###

### BEGIN /etc/grub.d/45_uefi-firmware ###
menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
	fwsetup
}
### END /etc/grub.d/45_uefi-firmware ###

### BEGIN /etc/grub.d/46_custom_proxy ###

# 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/46_custom_proxy ###

### BEGIN /etc/grub.d/47_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/47_custom ###
-
I wonder what will happen on the next kern update? But, again, this is disgustingly simple to do if I have to each time (I did with grub-customizer).
-- ASUS Prime Z790-V WIFI, I9-12900k, GeForce RTX™ 3060 Ti VISION OC 8G, UEFI/GPT, 32GB, Sam 980 Pro 1T M.2 .
-laserjets: HP M254dw color, HP P1606dn. Epson Perfection 2480 flatbed scanner -
User avatar
SMG
Level 25
Level 25
Posts: 31948
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: (re-SOLVED) Linux Mint 21 GRUB edit question - don't know how to set up grub menu

Post by SMG »

Kris345 wrote: Wed Aug 10, 2022 7:55 pm The script is apparently
/etc/grub.d.proxifiedScripts/custom
That sounds like something Grub Customizer might have added to your system? Or else it is new in LM21. I do not have that directory in LM20.3.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
User avatar
Kris345
Level 5
Level 5
Posts: 548
Joined: Mon Jun 22, 2020 10:22 am
Location: New England

Re: (re-SOLVED) Linux Mint 21 GRUB edit question - don't know how to set up grub menu

Post by Kris345 »

which begs the question what happens if I delete it and run update-grub ...

I'll play with that tomorrow - proxies 06,40,41,46 all have pointers to it (I LOVE "search content" in Files app)

Actually, I think the house of cards will fall if I remove it so I will leave it and wait to see what happens with next kern update.

Yes, I think that and proxies were created by grub-customizer.
-- ASUS Prime Z790-V WIFI, I9-12900k, GeForce RTX™ 3060 Ti VISION OC 8G, UEFI/GPT, 32GB, Sam 980 Pro 1T M.2 .
-laserjets: HP M254dw color, HP P1606dn. Epson Perfection 2480 flatbed scanner -
User avatar
JerryF
Level 16
Level 16
Posts: 6571
Joined: Mon Jun 08, 2015 1:23 pm
Location: Rhode Island, USA

Re: (re-SOLVED) Linux Mint 21 GRUB edit question - don't know how to set up grub menu

Post by JerryF »

Yes, the proxies were created by Grub Customizer. I experimented with it in the past and after finding that my Grub menu wouldn't show the latest kernel after a reboot, I uninstalled Grub Customizer. Unfortunately, that wasn't enough. The pervasive files were still there and in charge of Grub. I ended up backing up all my important user files and did a reinstall of the OS. After that, I never looked back.
User avatar
Kris345
Level 5
Level 5
Posts: 548
Joined: Mon Jun 22, 2020 10:22 am
Location: New England

Re: (re-SOLVED) Linux Mint 21 GRUB edit question - don't know how to set up grub menu

Post by Kris345 »

Yes, I believe that is correct from what I have seen - it would take a clean install to get it to the point where it would auto-update that first menu item.

And yes every kern update I had to run grub-customizer and manually update the first menu item.

So, now, if this holds, I change 3 lines in the custom file for every kern update. Trivial.

i will do a new install at some point but Mint (so far) appears to have made life too easy on this upgrade, so I won't for now. Later.....
-- ASUS Prime Z790-V WIFI, I9-12900k, GeForce RTX™ 3060 Ti VISION OC 8G, UEFI/GPT, 32GB, Sam 980 Pro 1T M.2 .
-laserjets: HP M254dw color, HP P1606dn. Epson Perfection 2480 flatbed scanner -
User avatar
Neophyte
Level 4
Level 4
Posts: 257
Joined: Sun Sep 27, 2015 10:49 pm

Re: (re-SOLVED) Linux Mint 21 GRUB edit question - don't know how to set up grub menu

Post by Neophyte »

I use grub customizer. For something like 19.1 to 19.2, I just do an upgrade. For something like 19.x to 20.x I do a clean install. Just keep your files on a separate drive/partition.
Patience is a virtue, but there are no saints left in this world.
User avatar
Pjotr
Level 24
Level 24
Posts: 20124
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: (re-SOLVED) Linux Mint 21 GRUB edit question - don't know how to set up grub menu

Post by Pjotr »

Kris345 wrote: Wed Aug 10, 2022 10:01 pm i will do a new install at some point
I recommend to bite the bullet and just do a clean fresh install of Mint 21. And from then on, give the bloody pest called grub-customizer a wide berth....
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
User avatar
JerryF
Level 16
Level 16
Posts: 6571
Joined: Mon Jun 08, 2015 1:23 pm
Location: Rhode Island, USA

Re: (re-SOLVED) Linux Mint 21 GRUB edit question - don't know how to set up grub menu

Post by JerryF »

With the default Grub, most of the customization can be done by editing the /etc/default/grub file and adding lines to that then running sudo update-grub

There are tutorials out there but I don't have them bookmarked.
User avatar
Kris345
Level 5
Level 5
Posts: 548
Joined: Mon Jun 22, 2020 10:22 am
Location: New England

Re: (re-SOLVED) Linux Mint 21 GRUB edit question - don't know how to set up grub menu

Post by Kris345 »

Pjotr wrote: Thu Aug 11, 2022 5:20 am
Kris345 wrote: Wed Aug 10, 2022 10:01 pm i will do a new install at some point
I recommend to bite the bullet and just do a clean fresh install of Mint 21. And from then on, give the bloody pest called grub-customizer a wide berth....
done. pita, but done.
-- ASUS Prime Z790-V WIFI, I9-12900k, GeForce RTX™ 3060 Ti VISION OC 8G, UEFI/GPT, 32GB, Sam 980 Pro 1T M.2 .
-laserjets: HP M254dw color, HP P1606dn. Epson Perfection 2480 flatbed scanner -
Locked

Return to “Installation & Boot”