我有一台需要一直工作的 Ubuntu 18.04 设备,但有些地方电网不好,所以经常会触电/断电。问题是启动失败/触电后,GRUB 菜单会在屏幕上停留 30 秒,到目前为止,我无法使用 grub 参数更改这种情况。这是我的 grub 文件:
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=10
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash fsck.mode=force fsck.repair=yes"
#GRUB_CMDLINE_LINUX_DEFAULY="fsck.mode=force fsck.repair=yes"
GRUB_CMDLINE_LINUX="text"
GRUB_TERMINAL=console
GRUB_DISABLE_OS_PROBER="TRUE"
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=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=640x480
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
这是迄今为止 grub 的最终版本,请注意,我使用“sudo update-grub”。另外要注意的是,我从 SD 卡启动。
我需要实现的是将其减少到 5 秒左右或完全跳过它。