Posted in Linux

How to change the grub timeout in rhel 7

Modification of boot time (grub timeout) is little different in rhel 7. Grub timeout is time to wait for manual selection of boot entry loaded by GRUB boot loader. This is useful for maintenance boot or to edit/modify boot entry  In rhel 7 default grub timeout is 5 second.

In rhel 7 /boot/grub directory is not present nor /boot/grub/menu.list. In rhel 7 grub is modified with grub2 and we can use /etc/default/grub file to modify boot loader configuration.

It’s not recommended to modify any grub file in rhel 7 apart from /etc/default/grub.

Following are the default values from /etc/default/grub file.

12


To modify the grub timeout edit /etc/default/grub file and change the GRUB_TIMEOUT value to your choice I am changing it to 3.

If you change it to -1 then it will never boot the machine automatically it will wait for manual selection if boot entry.

11

Once you changed the value of GRUB_TIMEOUT run grub2-mkconfig command to take effect in boot configuration

3

Now just reboot the machine and check the boot timeout value.

4

Advertisement

Author:

I have created this blog to share my learning from IT world. Hope you find it useful in your day to day work. Feel free to send me your feedback about my blog.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.