Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Gnome 3.22 / Fedora 25 / UEFI Boot / Dell Inspiron 15R 5520 Laptop

Hello,

I have been trying to display a background image in grub2; but nothing I've tried has worked. The image displayed properly in Fedora 24 with Legacy BIOS / MBR. I just recently installed the "Starfield" theme with yumex-dnf and replaced the theme.txt entry "desktop-image: fireworks.png" with "desktop-image: MyImage.png" and the image loaded just fine.

Here is a copy of my /etc/default/grub file:

GRUB_TIMEOUT="5"
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_CMDLINE_LINUX="rd.lvm.lv=fedora/root rd.lvm.lv=fedora/swap rhgb quiet"
GRUB_DEFAULT="saved"
GRUB_DISABLE_SUBMENU="true"
GRUB_DISABLE_RECOVERY="true"
GRUB_TERMINAL_OUTPUT="gfxterm"
GRUB_GFXPAYLOAD_LINUX="keep"
GRUB_GFXMODE="640x480"
export GRUB_COLOR_NORMAL="white/black"
export GRUB_COLOR_HIGHLIGHT="magenta/black"
GRUB_BACKGROUND="/boot/grub2/themes/system/nasa-wallpaper2.png"
#GRUB_THEME="/boot/grub2/themes/system/theme.txt"

Here's a copy of the "theme.txt" file with my edit:

#general settings
message-font: "DejaVu Sans Regular 12"
message-color: "#fff"
message-bg-color: "#000"
terminal-box: "terminal_box_*.png"
desktop-image: "nasa-wallpaper2.png" ##### My Edit ##### This is normally "fireworks.png" #####

#help bar at the bottom
+ label {
top = 100%-25
left = 0
width = 100%
height = 20
text = "@KEYMAP_MIDDLE@"
align = "center"
font = "DejaVu Sans Regular 10"
color = "#FFF"
}

#boot menu
+ boot_menu {
left = 22%
width = 56%
top = 20%
height = 35%
item_font = "DejaVu Sans Regular 12"
item_color = "#3c6eb4"
selected_item_font = "DejaVu Sans Bold 14"
selected_item_color= "#fff"
#selected_item_pixmap_style = "blob_*.png"
#icon_height = 25
icon_width = 0
item_height = 30
item_padding = 0
#item_icon_space = 0
item_spacing = 0
scrollbar = true
scrollbar_width = 20
scrollbar_thumb = "slider_*.png"
menu_pixmap_style = "boot_menu_*.png"
}

#progress bar
+ progress_bar {
id = "__timeout__"
left = 15%
top = 80%
height = 20
width = 70%
font = "DejaVu Sans Regular 12"
text_color = "#fff"
fg_color = "#3c6eb4"
bg_color = "black"
border_color = "#fff"
text = "@TIMEOUT_NOTIFICATION_LONG@"
}

Am I doing something wrong or is the code borked?

If the code is borked, can I edit the "theme.txt" fle to display 'MyImage.png" behind the normal grub2 menu?

Thanks