Centos 7 修改开机等待时间

Posted 吕正元

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Centos 7 修改开机等待时间相关的知识,希望对你有一定的参考价值。

1、修改配置

vim /boot/grub2/grub.cfg

2、定位到如下这段

if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=5
fi

3、修改set timeout 为1,为0无效,只需要改第一个timeout。

if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=1
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=5
fi
 

 

以上是关于Centos 7 修改开机等待时间的主要内容,如果未能解决你的问题,请参考以下文章