grub2 will not display background image
For some reason I cannot get grub2 to display a background image. I am using a compliant png image and I was able to get this working on fc24 by editing /etc/default/grub so that it looks as follows:
GRUB_TIMEOUT="5"
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT="saved"
GRUB_DISABLE_SUBMENU="true"
#GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="rd.lvm.lv=fedora/root rd.lvm.lv=fedora/swap rhgb quiet"
GRUB_DISABLE_RECOVERY="true"
GRUB_BACKGROUND="/boot/grub2/themes/system/nasa-wallpaper2.png"
export GRUB_COLOR_NORMAL="white/black"
export GRUB_COLOR_HIGHLIGHT="magenta/black"
GRUB_GFXMODE="640x480"
#GRUB_THEME="/boot/grub2/themes/system/theme.txt"
I have noticed however, that I have no "/boot/grub2/themes/system/theme.txt" file. I recall reading somewhere that an OP installed and then removed a theme, just to get this file, which allowed his background image to be displayed. I think this happened accidentally for me in fc24; however, I must be using whatever the standard system theme is because I haven't added any. Can I do something similar?
Thanks
Edit:
In case this is important, the drive is formatted as GPT/UEFI and I am updating grub2 with the following command:
grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
The output is as follows:
[xxxxxx@localhost ~]$ sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
[sudo] password for xxxxxx:
Generating grub configuration file ...
Found background: /boot/grub2/themes/system/nasa-wallpaper2.png
Found linux image: /boot/vmlinuz-4.8.10-300.fc25.x86_64
Found initrd image: /boot/initramfs-4.8.10-300.fc25.x86_64.img
Found linux image: /boot/vmlinuz-4.8.6-300.fc25.x86_64
Found initrd image: /boot/initramfs-4.8.6-300.fc25.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-39775cde93be4056b810772e333dfbdb
Found initrd image: /boot/initramfs-0-rescue-39775cde93be4056b810772e333dfbdb.img
Found Windows Boot Manager on /dev/sda2@/EFI/Microsoft/Boot/bootmgfw.efi
done
[xxxxxx@localhost ~]$
So, grub2 did find my background image. BTW, the system is dual-boot; but that really shouldn't matter for displaying a background image.
What I'd like to do next is load a grub2 theme, to see if I can get a background image to display. Can someone explain how to do this? I've loaded the 'breeze' theme from 'yumex-dnf;' but I don't know how to configure it. Any help appreciated.
Thanks
could it be because in your above
you have this:
Try un-commenting the line and using a value like "gfxterm" ?
Thanks for the reply thingummybob,
I tried this and it simply doubled the boot menu entries. These were repeats. But yeah, just commenting out the line is pretty lame; I guess I should have tried to find a real value to put there, which I will now. Oh and I have grub-customizer installed. It has its own grub.cfg at:
/etc/grub-customizer/grub.cfg
BTW, grub-customizer is notorious for NOT being able to set background images. It edits the boot menu options just fine. I'm wondering if the contents of this file are not quite "optimized?"
It also appears that I'm able to apply themes. I just can't set a background image.
Does anyone have a working example of an FC25/EFI system with a background image displayed?
I'd really like to see your /etc/default/grub and your theme.txt files.
Please post if you have them.
Thanks