11
2024
07
16:48:23

关闭CentOS启动进度条,替换为详细信息

修改grub


# cat /etc/default/grub

GRUB_TIMEOUT=5

GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"

GRUB_DEFAULT=saved

GRUB_DISABLE_SUBMENU=true

GRUB_TERMINAL_OUTPUT="console"

GRUB_CMDLINE_LINUX="crashkernel=auto rd.lvm.lv=centos/root rd.lvm.lv=centos/swap rhgb quiet"

GRUB_DISABLE_RECOVERY="true"

 

将GRUB_CMDLINE_LINUX行的rhgb quiet去掉。


重新生成启动引导


# grub2-mkconfig -o /boot/grub2/grub.cfg

 

重启


reboot

————————————————


392091c0d06de1f6a05f91b306725fe9_watermark,type_ZHJvaWRzYW5zZmFsbGJhY2s,shadow_50,text_Q1NETiBAWWVsaWFuZyBXdQ==,size_20,color_FFFFFF,t_70,g_se,x_16.png


rhgb表示redhat graphics boot,就是会看到图片来代替启动过程中显示的文本信息,这些信息在启动后用dmesg也可以看到


quiet表示在启动过程中只有重要信息显示,类似硬件自检的消息不回显示


rhgb = redhat graphical boot - This is a GUI mode booting screen with 

most of the information hidden while the user sees a rotating activity 

icon spining and brief information as to what the computer is doing.

 

quiet = hides the majority of boot messages before rhgb starts. These 

are supposed to make the common user more comfortable. They get alarmed 

about seeing the kernel and initializing messages, so they hide them for 

their comfort.

————————————————




推荐本站淘宝优惠价购买喜欢的宝贝:

image.png

本文链接:https://www.hqyman.cn/post/7039.html 非本站原创文章欢迎转载,原创文章需保留本站地址!

分享到:
打赏





休息一下~~


« 上一篇 下一篇 »

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

请先 登录 再评论,若不是会员请先 注册

您的IP地址是: