本人使用centos7操作系统,有许多开机自启动服务,从存储服务器挂载了一块盘,由于每次启动机器的时候存储服务器启动的时间较长,导致机器启动后硬盘挂载不成功,部分服务无法启动,于是查阅了延长centos7开机等待时间的方法,记录以备忘。

centos7已经不用grub,改用grub2。

[ root]# vi /boot/grub2/grub.cfg

找到并更改启动时间(timeout)

#将开机时的菜单选择时间由5秒缩短为600秒
#将set timeout=5修改为set timeout=2即可
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=600
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=2
fi

重启CentOS7,OK!

相关文章:

  • 2021-04-20
  • 2021-07-08
  • 2022-12-23
  • 2021-11-20
  • 2021-12-04
  • 2021-09-15
  • 2021-09-14
  • 2021-08-22
猜你喜欢
  • 2021-12-08
  • 2022-12-23
  • 2022-12-23
  • 2021-05-10
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案