Author Topic: [Solved]Where does Grub takes its background image when installing with ISO  (Read 1748 times)

Offline turzin

  • Full Member
  • ***
  • Posts: 232
  • Libéré depuis 2010. Merci Linux!
Hi!  I make remaster/live cd  ISO with LXDE.  On the original and on the LiveCD, all the backgrounds for booting and GRUB menu are LXDE.  But when I install on a new PC.  The background image for the grub menu is the "generic" PCLinuxOS backgroung (black and gray with). (For the rest of teh boot it's LXDE)
I want to do an ISO that install PCLinuxOS LXDE with the LXDE background image for grub.

Where does Grub take this image on my iso.

On the original, I find back.jpg and welcome.jpg  but thay are all LXDE.

Thanks
« Last Edit: February 24, 2012, 10:04:11 AM by turzin »

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Where does Grub takes it's background when installing with ISO
« Reply #1 on: February 22, 2012, 05:09:29 PM »
/usr/share/gfxboot/themes     

Try replacing the back.jpg and the welcome.jpg in /usr/share/gfxboot/themes/PCLinuxOS/install/ with the images in /usr/share/gfxboot/themes/lxde/.     

Offline turzin

  • Full Member
  • ***
  • Posts: 232
  • Libéré depuis 2010. Merci Linux!
Re: Where does Grub takes it's background when installing with ISO
« Reply #2 on: February 22, 2012, 06:28:24 PM »
Yes, replaced both in /usr/share/gfxboot/themes/PCLinuxOS/install  and I checked them with Viewnior and they are both LXDE.
I also tried a switch-themes LXDE --rebuild-initrd (i'm not sure if it's before or after I replaced the images).

The backgrounds for Grub and Bootsplash are LXDE everywhere (On the original PC, on Live ISO, also in the bootsplash on the new install) BUT not in Grub on the new install.

So maybe the "generic" PCLinuxOS background is hidden somewhere in my original install, on another name than welcome.jpg or back.jpg?  If Grub background is LXDE on LiveCD, why does it changes when I install it on a PC? Something in skel?
« Last Edit: February 22, 2012, 08:23:09 PM by turzin »

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: Where does Grub takes it's background when installing with ISO
« Reply #3 on: February 22, 2012, 07:02:34 PM »
Take a look in /usr/share/gfxboot/themes/PCLinuxOS/install/ directory.
Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline turzin

  • Full Member
  • ***
  • Posts: 232
  • Libéré depuis 2010. Merci Linux!
Re: Where does Grub takes it's background when installing with ISO
« Reply #4 on: February 22, 2012, 08:20:32 PM »
Quote
Take a look in /usr/share/gfxboot/themes/PCLinuxOS/install/ directory.
On the "original" PC, back and welcome in this directory are LXDE
On the "new" PC on wich I installed PCLOS from an ISO created with the "original", back and welcome in this directory are LXDE
I'm I supposed to check other files?

P.S. I check on the ISO itself and back and welcome.jpg are LXDE.

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: Where does Grub takes its background image when installing with ISO
« Reply #5 on: February 22, 2012, 10:40:00 PM »
turzin,

Sorry. I reread your post only to realize you're looking for the GRUB background. Duh. It's a file named back.jpg. But it's contained in a CPIO archive file named gfxmenu. Look in the /boot directory. You'll see the gfxmenu archive file. Open it with your favorite archiver, such as Ark or Fileroller. You'll see the back.jpg file as part of the archive. You can probably double-click it to view it in Viewnor. Note that gfxmenu is a read-only file. You should make a copy of it and make any changes to the copy, along with keeping a second backup copy of gfxmenu, just in case.

Someone may correct me on this. But, I believe the grey PCLinuxOS GRUB boot image you're seeing on the remaster is coming from /usr/share/gfxboot/themes/PCLinuxOS/install/back.jpg. Check your installation to see if that's true on your machine.

Also, the files in /etc/skel are user settings files for a new user's home directory, not system ones.
Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Where does Grub takes its background image when installing with ISO
« Reply #6 on: February 23, 2012, 12:01:31 AM »
/boot/gfxmenu is a cpio archive. /usr/share/gfxboot/themes/PCLinuxOS/boot/message is another cpio archive. Both contain the graphics used. That is back.jpg and welcome.jpg.     
If the graphics in these are not correct, extract them in your home and replace the graphics. Note: after extracting them, the original cpio archives will be in their respective folders; delete those. After replacing the graphics, create new cpio archives with the same names and replace the old with the new.     

Offline turzin

  • Full Member
  • ***
  • Posts: 232
  • Libéré depuis 2010. Merci Linux!
Re: Where does Grub takes its background image when installing with ISO
« Reply #7 on: February 23, 2012, 05:53:49 PM »
Thanks guys for your help!

The images in /boot/gfxmenu where OK (lxde theme) but in usr/share/gfxboot/themes/PCLinuxOS/boot/message, I found the "generic" image !!  Hourra!  I replaced the image.

 I'll try another ISO tonight, but I'm pretty sure it will be OK.

I'll tell you  tomorow.

Offline turzin

  • Full Member
  • ***
  • Posts: 232
  • Libéré depuis 2010. Merci Linux!
Re: Where does Grub takes its background image when installing with ISO
« Reply #8 on: February 24, 2012, 05:28:46 AM »
YES!  LXDE Backgrounds all over in the new install with ISO CD.

So, it was the back.jpg store in usr/share/gfxboot/themes/PCLinuxOS/boot/message.cpio that cause the "problem".  I replaced this back.jpg (generic 2012 PClinuxOS) with the LXDE back.jpg.
(For your information, I found no welcome.jpg in this cpio archive, only a back.jpg).
So Grub takes its background in this message.cpio for a new install.

Quote
Someone may correct me on this. But, I believe the grey PCLinuxOS GRUB boot image you're seeing on the remaster is coming from /usr/share/gfxboot/themes/PCLinuxOS/install/back.jpg. Check your installation to see if that's true on your machine.
Yes, at first, they were there before I replaced them with LXDE images. It's the same image I found in message.cpio. Probably it got there with the PCLinuxOS-theme 2012 update before the LXDE-theme update from Neal.

THanks Neal and djohnston