Поместите следующую строку в/etc/default/grub
GRUB_DISABLE_OS_PROBER=true
Из Grub2/Setup в документации Ubuntu специальные записи, пункт #16.2:
While both methods prevent os-prober from running and placing items in the menu display, using this setting allows the 30_os-prober script, but not the os-prober command, to run. This script enables the GRUB_HIDDEN_TIMEOUT setting and/or the ability to display a hidden menu by pressing the ESC key (depending on other settings). This functionality is lost if the 30_os-prober script is disabled by making it unexecutable.
Однако при этом любая другая ОС исчезает из списка. Memtest и дополнительные параметры будут по-прежнему доступны.
Другой вариант — установить GRUB_TIMEOUT="1"
Хотя это своего рода хак, он ускоряет загрузку на 9 секунд и позволяет загружать другие системы.
Также не забудьте запустить sudo update-grub
, чтобы применить все сделанные вами изменения.