Submenu in Grub

Today I wanted to activate the submenus in the Grub with GRUB_DISABLE_SUBMENU=n. That worked very well. My Grub looked very tidy at the next reboot BUT: I got a message after setting up the desktop that I had no internet connection. The corresponding icon in the tray had nothing, nothing at all but ethernet. So I undid the change in the grub with GRUB_DISABLE_SUBMENU=y. Restart -> ethernet was back … What has this to do with each other? Were there any modules not loaded? Sounds completely illogical to me,
I like the grub menu with submenu, how can I activate it?

1 Like

Strange indeed…
What if you simply comment out that line?
I assume you re-created grub.cfg, right?

Ok, I will try this.

with sudo update-grub, as alwas …

Using manjaro?

no. use EnOS Xfce

I forgot: the line was already commented out, even before

EndeavourOS does not have update-grub command, so you may have created it yourself?
Can you show its contents?

I have in stalled update-grub with yay before.

Is there a better way?

If it’s this package then update-grub is a pretty strightforward:

#!/bin/sh
set -e
exec grub-mkconfig -o /boot/grub/grub.cfg "$@"

So, that shouldn’t affect anything… :confused:

visually in the terminal it does the same as update-grub

so can I uninstall update grub with yay again?

It does this:

#!/bin/sh
set -e
exec grub-mkconfig -o /boot/grub/grub.cfg "$@"

Don’t know if that could cause any issues, but as @jonathon said, better use the official command instead.
EDIT: you are too fast for me… :wink:

1 Like

One possible reason might be picking a different kernel, or a fallback, instead of the usual one?

The GRUB menu shouldn’t affect anything other than which kernel is loaded… :confused:

That might be the cause. So not grub as such.

1 Like

Well, I have now booted with kernel 5.4 LTS, Grub before with sudo grub-mkconfig -o /boot/grub/grub.cfg
updated -> same problem.

1 Like

I think I will get used to it, thanks for your help!

Looking at the default /etc/default/grub.cfg this item isn’t present, and I think that it’s the default anyway (https://www.gnu.org/software/grub/manual/grub/html_node/Simple-configuration.html).

Have you checked for a /etc/default/grub.cfg.pacnew? Have you used any other GRUB or configuration/customisation program previously? Have you tried reinstalling GRUB (grub-install /dev/BLAH) to make sure it’s up-to-date in the MBR/EFI?

Today I have newly installed EOS (online).
This is my grub in the original after the installation:

# GRUB boot loader configuration

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="EndeavourOS"
GRUB_CMDLINE_LINUX_DEFAULT="quiet loglevel=3 nowatchdog"
GRUB_CMDLINE_LINUX=""

# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"

# Uncomment to enable booting from LUKS encrypted devices
#GRUB_ENABLE_CRYPTODISK=y

# Set to 'countdown' or 'hidden' to change timeout behavior,
# press ESC key to display menu.
GRUB_TIMEOUT_STYLE=menu

# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console

# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT=console

# 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=auto

# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX=keep

# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY=true

# Uncomment and set to the desired menu colors.  Used by normal and wallpaper
# modes only.  Entries specified as foreground/background.
#GRUB_COLOR_NORMAL="light-blue/black"
#GRUB_COLOR_HIGHLIGHT="light-cyan/blue"

# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/path/to/wallpaper"
GRUB_THEME=/boot/grub/themes/EndeavourOS/theme.txt

# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"

# Uncomment to make GRUB remember the last selection. This requires
# setting 'GRUB_DEFAULT=saved' above.
#GRUB_SAVEDEFAULT="true"
GRUB_DISABLE_SUBMENU=y

this is the Grub now:

# GRUB boot loader configuration

GRUB_DEFAULT=saved
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="EndeavourOS"
GRUB_CMDLINE_LINUX_DEFAULT="quiet loglevel=3 nowatchdog"
GRUB_CMDLINE_LINUX=""

# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"

# Uncomment to enable booting from LUKS encrypted devices
#GRUB_ENABLE_CRYPTODISK=y

# Set to 'countdown' or 'hidden' to change timeout behavior,
# press ESC key to display menu.
GRUB_TIMEOUT_STYLE=menu

# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console

# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT=console

# 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=auto

# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX=keep

# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY=true

# Uncomment and set to the desired menu colors.  Used by normal and wallpaper
# modes only.  Entries specified as foreground/background.
#GRUB_COLOR_NORMAL="light-blue/black"
#GRUB_COLOR_HIGHLIGHT="light-cyan/blue"

# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/path/to/wallpaper"
#GRUB_THEME=/boot/grub/themes/EndeavourOS/theme.txt

# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"

# Uncomment to make GRUB remember the last selection. This requires
# setting 'GRUB_DEFAULT=saved' above.
GRUB_SAVEDEFAULT="true"
GRUB_DISABLE_SUBMENU=y

1 Like

Hmm… that’s pretty similar to the Arch default:

I have no idea… :man_shrugging:

this don’t exists here

1 Like

Ok, thanks for your patience @jonathon @manuel, I will leave it at that. This is only a luxury problem and not the end of the world.