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