How to edit Grub so that it displays the distribution name during first-boot & after installation

Asked by Adam Salt

I am currently working on my distribution called CelOS, and we are now ready to edit the grub.
Obviously you do not directly edit grub.cfg, instead we edited
/etc/lsb-release as well as
/etc/default/grub

along with that we have also created a custom grub color scheme in /boot/grub/custom.cfg

On my installed system, once this was done I ran "sudo update-grub" and it worked, however I cannot run update-grub within a chroot environment.

I assumed that it would automatically do this however I was incorrect, as during first boot grub still shows "Ubuntu" rather than "CelOS GNU/Linux"

I was wondering whether you would know how we can resolve this.
Many thanks,
Adam.

Question information

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

Adam,

See the question and answer from 5/12/2021...

How to update /etc/default/grub and /boot/grub/grub.cfg ?
(https://answers.launchpad.net/cubic/+question/697019)

Revision history for this message
Adam Salt (whyadamsalt) said :
#3

I'm testing it now, however it doesn't seem like this will work for before the OS is installed (essentially when you're booting from USB) - I will still test it and detail my results

Revision history for this message
Adam Salt (whyadamsalt) said :
#4

Just tested it, it doesn't work before the OS is installed (Booting from live USB it still says "ubuntu")

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

Ah. By "first boot", you mean when the Live ISO boots up.

The solution above only affects the grub menu ~after~ install.

There are two different things you have to handle. Think of it this way...

(#1) You need to tell the computer how to boot, once the OS is installed.

This is what https://answers.launchpad.net/cubic/+question/697019 does.

(#2) You also need to tell the computer how to boot the Live ISO.

The grub configurations used to boot the ISO (#2) are different than the grub configuration used to boot the installed system (#1).

You can find the files you will need to modify for the Live ISO Boot process on the "Boot" tab of Cubic's Options page.
The important files are already listed (grub.cfg, loopback.cfg, etc.).You can also click the "Show all files" button in the header bar to see additional files that you may need to modify.

Revision history for this message
Adam Salt (whyadamsalt) said :
#6

I have just tested this and it works perfectly fine! Thank you so much for all of your help!

Revision history for this message
Adam Salt (whyadamsalt) said :
#7

Thanks Cubic PPA, that solved my question.