码迷,mamicode.com
首页 > 其他好文 > 详细

CentOS7开机时的菜单选择时间修改

时间:2018-10-29 14:45:27      阅读:436      评论:0      收藏:0      [点我收藏+]

标签:重启   case   centos7   set   normal   etc   menu   内容   root   

CentOS7开机时的菜单选择时间由5秒缩短为2秒,尝试过修改:

[root@centos7 ~] #2> vim /etc/default/grub

修改timeout =2

[root@centos7 ~] #3> vim /boot/grub2/grub.cfg

修改centos/grub.cfg中的以下部分内容后重启CentOS7,OK!

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

CentOS7开机时的菜单选择时间修改

标签:重启   case   centos7   set   normal   etc   menu   内容   root   

原文地址:https://www.cnblogs.com/Sky-Raining/p/9870423.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!