![如何在启动时禁用紫色引导加载程序启动画面?](https://linux22.com/image/1094374/%E5%A6%82%E4%BD%95%E5%9C%A8%E5%90%AF%E5%8A%A8%E6%97%B6%E7%A6%81%E7%94%A8%E7%B4%AB%E8%89%B2%E5%BC%95%E5%AF%BC%E5%8A%A0%E8%BD%BD%E7%A8%8B%E5%BA%8F%E5%90%AF%E5%8A%A8%E7%94%BB%E9%9D%A2%EF%BC%9F.png)
这个问题之前已经回答过了,但在 11.10 上,接受答案中的任何一种方法对我来说都不起作用。
首先,我尝试在 中编辑/etc/default/grub
,然后运行sudo update-grub
。但之后,在内核加载时,我仍然看到空白、纯紫色的屏幕。屏幕上没有启动选项,并且遮住了我想在终端中看到的那些 dmesg。
接下来我尝试删除plymouth-theme-*
,但是这破坏了我的 gnome-shell 主题外观,并且紫色屏幕仍然存在。
我也尝试过用startupmanager
包对其进行配置,但似乎没有什么能够摆脱那该死的紫色飞溅。
/etc/default/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_HIDDEN_TIMEOUT="0"
GRUB_HIDDEN_TIMEOUT_QUIET="true"
GRUB_TIMEOUT="0"
GRUB_DISTRIBUTOR="`lsb_release -i -s 2> /dev/null || echo Debian`"
#GRUB_CMDLINE_LINUX_DEFAULT=""
GRUB_CMDLINE_LINUX_DEFAULT=""
GRUB_CMDLINE_LINUX=""
# 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_DISABLE_OS_PROBER="true"
答案1
尝试这个
sudo mv /etc/init/plymouth.conf /etc/init/plymouth.conf.disabled
答案2
#GRUB_TERMINAL=console
取消注释/etc/default/grub
。
答案3
Grub 从中加载其背景颜色/lib/plymouth/themes/default.grub
(如中所示/etc/grub.d/05_debian_theme
)。
我不知道改变这种颜色的标准方法,但编辑/lib/plymouth/themes/default.grub
对我有用:
if background_color 0,0,0; then
clear
fi
然后,在命令行中输入sudo update-grub