CentOS7开机时的菜单选择时间由5秒缩短为2秒
2017年11月22日 00:52:32 ycjnx 阅读数:1647
版权声明:本文为博主原创文章,网络共享时代,欢迎各种转载 https://blog.youkuaiyun.com/ycjnx/article/details/78598561
CentOS7开机时的菜单选择时间由5秒缩短为2秒,尝试过修改:
[root@centos7 ~] #2> vim /etc/default/grub
- 1
修改无效!
也直接修改过:
[root@centos7 ~] #3> vim /boot/grub2/grub.cfg
- 1
修改也无效!
真正起作用的是下句代码:
[root@centos7 centos] #16> vim /boot/efi/EFI/centos/grub.cfg
- 1
修改centos/grub.cfg中的以下部分内容后重启CentOS7,OK!
#将开机时的菜单选择时间由5秒缩短为2秒
#将set timeout=5修改为set timeout=2即可
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
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
记录以备忘!