Using Fedora 38,I have found how to implement your grub configuration
file in the boot menu
by the following not grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg.
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
here is my grub customize that is directly boot on fedora system on dual boot system with windows 11
navigated to /etc/default/grub
GRUB_TIMEOUT=0
# GRUB_HIDDEN_TIMEOUT_QUIET=true
# GRUB_TIMEOUT_STYLE=hidden
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT="saved"
GRUB_DISABLE_SUBMENU="true"
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="resume=UUID=251705bf-4888-4dfd-94db-220b2e261feb rhgb quiet"
GRUB_DISABLE_RECOVERY="true"
GRUB_ENABLE_BLSCFG="true"
Chatgpt says
This is a configuration file for the GRUB bootloader on a Linux system. Here’s what each line does:
GRUB_TIMEOUT=0
: Sets the timeout for the GRUB menu to 0 seconds, which means the menu won’t be displayed and the default entry will be automatically booted.GRUB_HIDDEN_TIMEOUT_QUIET=true
: Hides the GRUB menu and boots directly into the default entry without displaying any messages. TheGRUB_TIMEOUT
setting is effectively ignored when this is enabled.GRUB_TIMEOUT_STYLE=hidden
: Hides the GRUB menu and boots directly into the default entry without displaying any messages. This is similar toGRUB_HIDDEN_TIMEOUT_QUIET=true
, but it also hides the countdown timer.GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
: Sets the distributor name for the GRUB menu. This line uses thesed
command to extract the name of the distribution from the/etc/system-release
file.GRUB_DEFAULT="saved"
: Sets the default entry to be the last one that was selected. This means that if the user selects a different entry from the menu, that entry will become the default for the next boot.GRUB_DISABLE_SUBMENU="true"
: Disables the submenu feature in the GRUB menu. This means that all menu entries will be displayed at the top level.GRUB_TERMINAL_OUTPUT="console"
: Sets the output device for GRUB messages to the console.GRUB_CMDLINE_LINUX="resume=UUID=251705bf-4888-4dfd-94db-220b2e261feb rhgb quiet"
: Sets the kernel command line parameters for Linux when it boots. This line specifies the resume device using its UUID, enables the Red Hat graphical boot (rhgb) feature, and sets the system to boot quietly without displaying messages.GRUB_DISABLE_RECOVERY="true"
: Disables the recovery mode feature in the GRUB menu.GRUB_ENABLE_BLSCFG="true"
: Enables the use of the Boot Loader Specification (BLS) configuration files. This feature provides a more flexible and powerful way to manage kernel boot options.