新安装的 Ubuntu 24.04,我正在根据我的喜好调整它......
一件事是尽量减少 grub 菜单的延迟,但总是显示它。
希望下面的信息可以告诉你可能出了什么问题,
因为这应该将其设置为在 grub 菜单中延迟 3 秒,但这显然被忽略了。
实际延迟显示从 30 秒开始倒计时 - 我认为这是某种默认设置。
$ . /etc/os-release ; echo $PRETTY_NAME
Ubuntu 24.04 LTS
$ grep '^GRUB_' /etc/default/grub
GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=3
GRUB_DISTRIBUTOR=`( . /etc/os-release; echo ${NAME:-Ubuntu} ) 2>/dev/null || echo Ubuntu`
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1"
GRUB_CMDLINE_LINUX=""
$ sudo update-grub2 # or just "sudo update-grub"
[sudo] password for hannu:
Sourcing file `/etc/default/grub'
Generating grub configuration file ...
Found linux image: vmlinuz-6.8.0-31-generic in rpool/ROOT/ubuntu_xxxxxx
Found initrd image: initrd.img-6.8.0-31-generic in rpool/ROOT/ubuntu_xxxxxx
Found memtest86+ 64bit EFI image: /BOOT/ubuntu_xxxxxx@/memtest86+x64.efi
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done
$ reboot