Custom Grub install menu entries truncated

Ask for help with issues regarding the Installations of the Debian O/S.
Post Reply
Message
Author
UncleT
Posts: 1
Joined: 2024-11-03 21:45

Custom Grub install menu entries truncated

#1 Post by UncleT »

Based upon the procedure at https://wiki.debian.org/RepackBootableISO I am trying to make some custom bootable ISOs that have multiple options for preseeding.

I've got menu entries like this in a .cfg file in the /boot/grub directory of the custom installation ISO:
menuentry 'Graphical automated install - testvm-gui.cfg' {
set background_color=black
linux /install.amd/vmlinuz auto=true priority=critical vga=788 file=/cdrom/unclet-preseed/testvm-gui.cfg --- quiet
initrd /install.amd/gtk/initrd.gz
}
However, when I boot this image on a UEFI amd64 machine, the menuentry titles are truncated, even though there is plenty of screen space available.
Screenshot 2024-11-03 at 4.49.59 PM.png
I don't have this problem on amd64 BIOS machines or on arm64 machines.

How do I fix this?

mrmazda
Posts: 569
Joined: 2023-06-02 02:22
Has thanked: 15 times
Been thanked: 70 times

Re: Custom Grub install menu entries truncated

#2 Post by mrmazda »

On all my PCs I disable graphical Grub boot, and the menus use the entire screen. IIRC, it is GRUB_TERMINAL="console" that disables.

Aki
Global Moderator
Global Moderator
Posts: 4259
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 124 times
Been thanked: 576 times

Re: Custom Grub install menu entries truncated

#3 Post by Aki »

Hello,

The menu items are truncated due to fixed length according to the display resolution at boot time.

You can change the /etc/default/grub configuration file from:

Code: Select all

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=640x480
to a different (higher) resolution allowed by your graphic card.

The other way around is to use the text console, as suggested in the previous post.

Hope this helps.
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

Post Reply