Сидел себе на LM20 и горя не знал, тут черт дернул переехать на 21. И сразу поимел пачку мелких проблем. Большинство из них решил, а на грубе споткнулся. Старая система была на MBR, а тут связался с пожизненно кривым уефанством. И никак его не победю.
Код: Выделить всё
Устр-во Загрузочный начало Конец Секторы Размер Идентификатор Тип
/dev/sda1 2048 230025215 230023168 109,7G 83 Linux
/dev/sda2 * 230025216 230230015 204800 100M ef EFI (FAT-12/16/32)
/dev/sda3 230230016 234440703 4210688 2G 82 Linux своп / Solaris
Действую штатным образом:
- прописываю параметры в /etc/default/grub
Код: Выделить всё
GRUB_DEFAULT=0 GRUB_TIMEOUT_STYLE=menu GRUB_TIMEOUT=3 GRUB_DISABLE_OS_PROBER="true" GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` GRUB_CMDLINE_LINUX_DEFAULT="radeon.dpm=0" GRUB_CMDLINE_LINUX="" GRUB_TERMINAL="gfxterm" GRUB_GFXMODE="1920x1080"
- генерирую конфиг:
update-grub
Код: Выделить всё
Sourcing file `/etc/default/grub' Sourcing file `/etc/default/grub.d/50_linuxmint.cfg' Sourcing file `/etc/default/grub.d/init-select.cfg' Generating grub configuration file ... Found linux image: /boot/vmlinuz-5.15.0-53-generic Found initrd image: /boot/initrd.img-5.15.0-53-generic Found linux image: /boot/vmlinuz-5.15.0-41-generic Found initrd image: /boot/initrd.img-5.15.0-41-generic Warning: os-prober will be executed to detect other bootable partitions. Its output will be used to detect bootable binaries on them and create new boot entries. done
(фрагмент /boot/grub/grub.cfg)
Код: Выделить всё
...
if [ $grub_platform = efi ]; then
set timeout=30
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
fi
fi
...
Код: Выделить всё
if [ "${recordfail}" = 1 ] ; then
set timeout=30
else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=3
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=3
fi
fi
if [ $grub_platform = efi ]; then
set timeout=30
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
fi
fi
В результате имею таймаут при загрузке 30 секунд — если не ковырять вручную /boot/grub/grub.cfg.
Вот так:
Код: Выделить всё
if [ $grub_platform = efi ]; then
set timeout=3
Почитал официальную доку — в ней написано все то же, что и в моих записках и множестве статей в интернетах. То есть, ничего EFI-специфического по части таймаута.
Как победить?