Hi... I should have mentioned that I do have customized configs for syslinux 
(syslinux + syslinux_common) and grub-pc in /bootloaders. This way I have, for 
instance, customized boot and grub splashes. It's only the grub menu labels, 
that too only for uefi installs, that doesn't seem to be working.
________________________________
From: Lyndon Brown <jnq...@gmail.com>
Sent: Tuesday, December 14, 2021 12:31 PM
To: Anindya Chaudhuri <anindy...@hotmail.com>; debian-live@lists.debian.org 
<debian-live@lists.debian.org>
Subject: Re: Debian live-build: Specifiying grub menu label for grub-efi

There's only so much customisation that you can get done with the configuration 
options alone, as you have surmised, however this is completely the wrong file 
to edit to achieve your goal.

The menus are created from templates kept in /usr/share/live/build/bootloaders.

You are supposed to copy stuff from this into the bootloaders directory of your 
config and then modify it as necessary. Note that there are various 
placeholders within the template files that get filled in during the build 
process.

So, copy the template directories for any applicable bootloaders into your 
config bootloader directory, determine which files you wish to customise and 
then customise them. You can remove from your config any that you're not 
modifying.


On Tue, 2021-12-14 at 05:57 +0000, Anindya Chaudhuri wrote:
My /auto/config has the line: "--bootloaders "syslinux, grub-efi". This 
generates an image which can be installed both on bios and uefi machines 
without any problem (i.e. grub-pc is installed for bios, and grub-efi-amd64 is 
installed for uefi, both tested in virtualbox). For changing the grub menu 
label entries, I have included the following /etc/default/grub file:

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR='MyLinux'
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX="initrd=/install/initrd.gz"
GRUB_ENABLE_CRYPTODISK=y

During installation I am receiving a messaged that the /etc/default/grub file 
has been changed, and whether I want to use the package maintainer's version. 
For bios, if I choose "keep the version currently installed", the grub boot 
menu shows "MyLinux" and "Advanced Options for MyLinux" as expected. However, 
for uefi, this fails - if I choose "keep current version", I just get a grub 
terminal during the post-install boot. If I choose to install the package 
maintainer's version, it of course overwrites the /etc/default/grub. 
Post-install grub loads without a problem, but the menu entries are the regular 
"Debian GNU/Linux" etc. Can somebody please help me understand how the grub 
menu labels are generated with grub-efi - what settings do I need to change so 
that the menu label shows "MyLinux" etc.?

Thanks.


Reply via email to