How to change splash image in CentOS 7 grub2

Issues related to applications and software problems
MakeMe50Cent
Posts: 2
Joined: 2015/02/06 10:25:28

How to change splash image in CentOS 7 grub2

Post by MakeMe50Cent » 2015/02/06 11:16:15

Hi,

How can I change grub2 splash screen in CentOS 7? I've searched google but I've found only how to do it in ubuntu. Because different paths, tools, etc. it is not working in CentOS 7. Please, help me change grub2 splash screen.

Thanks,
MakeMe50Cent

MakeMe50Cent
Posts: 2
Joined: 2015/02/06 10:25:28

Re: How to change splash image in CentOS 7 grub2

Post by MakeMe50Cent » 2015/02/12 13:22:42

Finally, I resolved it by myself...
The problem occured bacause I missed step number 3 in following list. For those who still don't know how to do it:

1) create/convert your splash picture to .tga in gimp

2) edit /etc/default/grub and add line:
GRUB_BACKGROUND="/path/to/your/tga/file.tga"

3) edit /etc/default/grub and comment following line:
GRUB_TERMINAL_OUTPUT="console"

4) run:
grub2-mkconfig -o /boot/grub2/grub.cfg

5) reboot and enjoy your work!

nDman
Posts: 1
Joined: 2015/08/14 15:30:56

Re: How to change splash image in CentOS 7 grub2

Post by nDman » 2015/08/22 15:09:59

Wow, finally a working trick. Thanks for posting it ;)

sprite_
Posts: 11
Joined: 2015/08/19 03:53:44

Re: How to change splash image in CentOS 7 grub2

Post by sprite_ » 2015/10/02 08:31:49

This does not work with my machine. I am using EFI to boot. Can you help?

root:[~]# cat /etc/default/grub
GRUB_TIMEOUT="3"
GRUB_DEFAULT="saved"
GRUB_DISABLE_SUBMENU="true"
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="crashkernel=auto rhgb quiet acpi_backlight=vendor"
GRUB_DISABLE_RECOVERY="true"
GRUB_CMDLINE_LINUX_DEFAULT="elevator=cfq transparent_hugepage=never"
GRUB_BACKGROUND="/usr/share/backgrounds/gnome/FootFall.tga"


grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg

giulix63
Posts: 1305
Joined: 2014/05/14 10:06:37
Location: GMT

Re: How to change splash image in CentOS 7 grub2

Post by giulix63 » 2015/10/02 10:12:58

Did you carry out step #3? From your post it would seem you too missed that one...
Root is evil: Do not use root (sudo) to run any of the commands specified in my posts unless explicitly indicated. Please, provide the necessary amount of context to understand your problem/question.

ericson007
Posts: 48
Joined: 2012/04/01 09:07:48

Re: How to change splash image in CentOS 7 grub2

Post by ericson007 » 2015/10/13 00:34:05

For step 3 change your path to

Code: Select all

/boot/efi/EFI/centos/grub.cnf

hamtrix
Posts: 1
Joined: 2016/04/18 08:55:57

Re: How to change splash image in CentOS 7 grub2

Post by hamtrix » 2016/04/18 08:58:52

Guys!
make sure to 'chmod +x' your image file in whatever directory it is.
I troed everything with no success thousand times until I changed the file permission and it was done.
Thanks.

kapil0711
Posts: 1
Joined: 2016/11/25 13:10:10

Re: How to change splash image in CentOS 7 grub2

Post by kapil0711 » 2016/11/25 13:15:04

still facing same issue, splash image is not showing.

steps followed

vim /etc/default/grub

GRUB_TERMINAL_OUTPUT="console"
GRUB_BACKGROUND=”/home/kss/Pictures/edit.tga”

chmod +x /home/kss/Pictures/edit.tga

grub2-mkconfig -o /boot/grub2/grub.cfg

reboot PC still not gettting the splash image

User avatar
TrevorH
Forum Moderator
Posts: 27127
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: How to change splash image in CentOS 7 grub2

Post by TrevorH » 2016/11/25 13:43:44

I'd copy that file to somewhere under /boot as /home could potentially be on a different, unmounted filesystem.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
CentOS 5 has been EOL for nearly 3 years and should no longer be used for anything!
Full time Geek, part time moderator. Use the FAQ Luke

TranceFormator
Posts: 1
Joined: 2016/12/16 18:43:33

Re: How to change splash image in CentOS 7 grub2

Post by TranceFormator » 2016/12/16 20:04:58

Changing CentOS 7 Grub Background
(CentOS Linux release 7.3.1611, x86_64)

1. Prepare a newfile.tga. Mine is 640x480, exported as targa with the Gimp as tga. It is also -rw-r--r-- root:root (but user does not matter)
2. Edit grub:

Code: Select all

vi /etc/default/grub
Two changes:
GRUB_BACKGROUND="/boot/grub/newfile.tga"
#GRUB_TERMINAL_OUTPUT="console"
Now it looks like this:

Code: Select all

GRUB_BACKGROUND="/boot/grub/newfile.tga"
GRUB_TIMEOUT=3
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=centos/swap crashkernel=auto selinux=0 rd.lvm.lv=centos/root vconsole.font=latarcyrheb-sun16 vconsole.keymap=de rhgb quiet"
GRUB_DISABLE_RECOVERY="true"
3. update-grub CentOS style:

Code: Select all

grub2-mkconfig -o /boot/grub2/grub.cfg
4. Reboot n´enjoy:

Code: Select all

init 6
Greetings, TranceFormator.

Post Reply

Return to “CentOS 7 - Software Support”