help-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to change grub background.


From: Andrei Borzenkov
Subject: Re: How to change grub background.
Date: Sun, 11 Oct 2015 15:26:59 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

11.10.2015 14:32, mostafa yasin пишет:
Dear colleagues,

I use grub 2.02~beta2 on lfs 7.7.  How to change grub background image.

Command background_image

I did these procedures but i get dark screen during boot:-

The content of /boot/grub/grub.cfg:-

set default=0
  set timeout=5
  set root=(hd0,3)

menuentry "GNU/Linux, Linux 3.19-lfs-7.7" {
  insmod ext2
  set root=(hd0,3)
  linux /boot/vmlinuz-3.19-lfs-7.7 root=/dev/sda3 ro
  initrd /boot/initramfs-3.19.0.img
  }

menuentry "Ubuntu" {
insmod ext2
set root=(hd0,2)
linux /boot/vmlinuz-3.13.0-24-generic root=/dev/sda2 ro
initrd /boot/initrd.img-3.13.0-24-generic
}


Your grub.cfg does not contain any command to set background image.

The content of /boot/grub/custom.cfg:-

GRUB_BACKGROUND=/boot/grub/Ain.png


You misunderstand. First, custom.cfg is grub script that contains commands, like grub.cfg. GRUB_BACKGROUND is interpreted by grub-mkconfig when it creates grub.cfg; it has no effect when set at boot time. Second, your grub.cfg does not source custom.cfg so even if content would be correct it would not be executed anyway.

Either use grub-mkconfig and set GRUB_BACKGROUND in /etc/default/grub or add commands to set background to grub.cfg manually.



Best Regards,

Mostafa YasinLinux system engineer                                      



_______________________________________________
Help-grub mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/help-grub





reply via email to

[Prev in Thread] Current Thread [Next in Thread]