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];the{initrdfail}" = 2 ]; then
set initrdfail=
elif [ "{prev_entry}"
set prev_entry=
save_env prev_entry
if [ "{next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
Assistant
To troubleshoot the issue with the background image not appearing in the Grub bootloader, you can try the following steps:
Check if the image file path is correct: Verify that the path to the background image file is accurate in the line background_image /usr/share/backgrounds/linuxmint/sele_ring.jpg. Make sure the image file exists in the specified location.
Check file permissions: Ensure that the background image file has proper read permissions. You can run ls -l /usr/share/backgrounds/linuxmint/sele_ring.jpg to check the file permissions. If the permissions are incorrect, you can change them using sudo chmod 644 /usr/share/backgrounds/linuxmint/sele_ring.jpg.
n
se
t
ha
v
eg
r
u
b
e
n
v
=
trueloadenvfiif["
initrdfail"=1];thensetnextentry="
nextentry"];thensetinitrdfail=2fifiif["
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "prevsavedentry"];thensetsavedentry="{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 "bootonce"];thensavedentry="{chosen}"
save_env saved_entry
fi
}
function initrdfail {
if [ -n "havegrubenv"];thenif[−n"{partuuid}" ]; then
if [ -z "initrdfail"];thensetinitrdfail=1if[−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 [ xfeature_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 211707ab-4521-4967-bb15-f20fd9215e20
font="/usr/share/grub/unicode.pf2"
fi
if loadfont font;thensetgfxmode=autoloadvideoinsmodgfxtermsetlocaledir=prefix/locale
set lang=ru_RU
insmod gettext
fi
terminal_output gfxterm
if [ "recordfail"=1];thensettimeout=30elseiffeature_timeout_style = xy ] ; then
set timeout_style=hidden
set timeout=10
Fallback hidden-timeout code in case the timeout_style feature is
unavailable.
elif sleep --interruptible 10 ; then
set timeout=0
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 211707ab-4521-4967-bb15-f20fd9215e20
insmod jpeg
if background_image /usr/share/backgrounds/linuxmint/sele_ring.jpg; then
true
else
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
fi
END /etc/grub.d/05_debian_theme
BEGIN /etc/grub.d/10_linux
function gfxmode {
set gfxpayload="1"if["{1}" = "keep" ]; then
set vt_handoff=vt.handoff=7
else
set vt_handoff=
fi
}
if [ "recordfail"!=1];thenif[−e{prefix}/gfxblacklist.txt ]; then
if [ grubplatform!={prefix}/gfxblacklist.txt 3; then
if [ 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 211707ab-4521-4967-bb15-f20fd9215e20
background_image /boot/grub/background.jpg
menuentry 'Linux Mint 21.2 Cinnamon' --class linuxmint --class gnu-linux --class gnu --class os menuentry_id_option 'gnulinux-simple-211707ab-4521-4967-bb15-f20fd9215e20' {
recordfail
load_video
gfxmode linux_gfx_mode
insmod gzio
if [ xgrub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 211707ab-4521-4967-bb15-f20fd9215e20
linux /boot/vmlinuz-5.15.0-89-generic root=UUID=211707ab-4521-4967-bb15-f20fd9215e20 ro quiet splash
initrd /boot/initrd.img-5.15.0-89-generic
}
submenu 'Advanced options for Linux Mint 21.2 Cinnamon' menuentry_id_option 'gnulinux-advanced-211707ab-4521-4967-bb15-f20fd9215e20' {
menuentry 'Linux Mint 21.2 Cinnamon, with Linux 5.15.0-89-generic' --class linuxmint --class gnu-linux --class gnu --class os menuentry_id_option 'gnulinux-5.15.0-89-generic-advanced-211707ab-4521-4967-bb15-f20fd9215e20' {
recordfail
load_video
gfxmode linux_gfx_mode
insmod gzio
if [ xgrub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 211707ab-4521-4967-bb15-f20fd9215e20
echo 'Loading Linux 5.15.0-89-generic ...'
linux /boot/vmlinuz-5.15.0-89-generic root=UUID=211707ab-4521-4967-bb15-f20fd9215e20 ro quiet splash
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-5.15.0-89-generic
}
menuentry 'Linux Mint 21.2 Cinnamon, with Linux 5.15.0-89-generic (recovery mode)' --class linuxmint --class gnu-linux --class gnu --class os menuentry_id_option 'gnulinux-5.15.0-89-generic-recovery-211707ab-4521-4967-bb15-f20fd9215e20' {
recordfail
load_video
insmod gzio
if [ xgrub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 211707ab-4521-4967-bb15-f20fd9215e20
echo 'Loading Linux 5.15.0-89-generic ...'
linux /boot/vmlinuz-5.15.0-89-generic root=UUID=211707ab-4521-4967-bb15-f20fd9215e20 ro recovery nomodeset dis_ucode_ldr
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-5.15.0-89-generic
}
menuentry 'Linux Mint 21.2 Cinnamon, with Linux 5.15.0-76-generic' --class linuxmint --class gnu-linux --class gnu --class os menuentry_id_option 'gnulinux-5.15.0-76-generic-advanced-211707ab-4521-4967-bb15-f20fd9215e20' {
recordfail
load_video
gfxmode linuxgfxmodeinsmodgzioif[xgrub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 211707ab-4521-4967-bb15-f20fd9215e20
echo 'Loading Linux 5.15.0-76-generic ...'
linux /boot/vmlinuz-5.15.0-76-generic root=UUID=211707ab-4521-4967-bb15-f20fd9215e20 ro quiet splash
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-5.15.0-76-generic
}
menuentry 'Linux Mint 21.2 Cinnamon, with Linux 5.15.0-76-generic (recovery mode)' --class linuxmint --class gnu-linux --class gnu --class os menuentry_id_option 'gnulinux-5.15.0-76-generic-recovery-211707ab-4521-4967-bb15-f20fd9215e20' {
recordfail
load_video
insmod gzio
if [ xgrub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 211707ab-4521-4967-bb15-f20fd9215e20
echo 'Loading Linux 5.15.0-76-generic ...'
linux /boot/vmlinuz-5.15.0-76-generic root=UUID=211707ab-4521-4967-bb15-f20fd9215e20 ro recovery nomodeset dis_ucode_ldr
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-5.15.0-76-generic
}
}
END /etc/grub.d/10_linux
BEGIN /etc/grub.d/10_linux_zfs
END /etc/grub.d/10_linux_zfs
BEGIN /etc/grub.d/20_linux_xen
END /etc/grub.d/20_linux_xen
BEGIN /etc/grub.d/20_memtest86+
END /etc/grub.d/20_memtest86+
BEGIN /etc/grub.d/30_os-prober
menuentry 'Windows Boot Manager (on /dev/nvme0n1p2)' --class windows --class os menuentryidoption′osprober−ef{timeout}" = 0 ]; then
set timeout=10
fi
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 configdirectory/custom.cfg];thensource{config_directory}/custom.cfg
elif [ -z "configdirectory"−a−fprefix/custom.cfg ]; then
source $prefix/custom.cfg
fi
END /etc/grub.d/41_custom
but i can't see the background image
Verify the image format: Ensure that the background image file is in a format supported by Grub, such as JPEG, PNG, or TGA. If the image is in a different format, you may need to convert it to a supported format using an image editing tool.
Check for errors during Grub configuration generation: Run sudo grub-mkconfig -o /boot/grub/grub.cfg to regenerate the Grub configuration file. Look for any error messages or warnings related to the background image. Fix any reported issues and try booting again.
Test with a different image: Try using a different background image file to see if the issue is specific to the sele_ring.jpg image or if it affects all images. Make sure the alternative image is in a supported format and has correct file permissions.
If none of these steps resolve the issue, it's possible that there's a specific configuration or compatibility problem with your setup. It may be helpful to consult the documentation or support resources for your specific Linux distribution or Grub version.