Edit grub theme

Asked by Jason Dessington

How could I update the grub theme from within the chroot? I have the necessary files and script to make the change to grub but no idea how to run within chroot. Any help appreciated.

Question information

Language:
English Edit question
Status:
Answered
For:
Cubic Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Cubic PPA (cubic-wizard) said :
#1

Are you talking about the font colors and (in some cases) background you see when viewing the grub menu?
Or are you talking about the Plymouth theme (the animation shown when booting up)?

Revision history for this message
Jason Dessington (dessibob) said :
#2

The first, I have a custom background and grub theme.

Revision history for this message
Cubic PPA (cubic-wizard) said :
#3

Ok, there are two Grub menus you need to consider:

1. Grub Menu for Customized OS

    This is the menu you see ~after~ you've installed your customized OS.

2. Grub Menu for Customized ISO

    This is the menu you see when you boot into a Live ISO.

Grub Menu for Customized OS
-------------------------------------------------

You should be able to edit the file:

    /etc/default/grub

from inside the chroot terminal in Cubic.

Another good file to edit is /etc/grub.d/40_custom. This file lets you add additional menu items to the main grub menu, without having to edit /etc/default/grub.

Place any files referenced by /etc/default/grub in appropriate directories. Remember, you can always copy files into your customized OS by dragging them onto the Cubic chroot terminal page. The files will be copied into your current directory in the terminal.

You may also need to run update-grub and/or update-initramfs -u after mmaking the changes.

The changes you make to Grub will appear when you actually install your customized OS.

In general, just follow any of the online instructions for modifying Grub 2, but make all of your changes inside Cubic's chroot terminal.

Grub Menu for Customized ISO
-------------------------------------------------

The Grub menu that appears when you boot into the iso is ~not~ configured from inside Cubic's chroot environment.

This menu is controlled by iso boot files, some of which can be edited on Cubic's options page.
These files are boot/grub/grub.cfg, boot/grub/loopback.cfg, and isolinux/txt.cfg.

These files also reference other configuration, font, and image files located in...
1. <Your Cubic Project>/custom-live-iso/boot/
2. <Your Cubic Project>/custom-live-iso/isolinux

You'll have to edit those outside of the Cubic UI, since Cubic doesn't (currently) support making changes to those.

Can you help with this problem?

Provide an answer of your own, or ask Jason Dessington for more information if necessary.

To post a message you must log in.