Grub is no longer needed for centos7. Use grub2 instead.
[Root] # vi/boot/grub2/grub. cfg
Locate and change the start time (timeout)
[Root] # grub2-mkconfig-O/boot/grub2/grub. cfg
[Root] # reboot
Restart and check the startup timeout wait time
Supplement:
/*
/Etc/default/grub and/etc/grub. d /????
*/
I. Boot win7:
1. Use root to open/boot/grub2/grub. cfg
2. Find ### begin/etc/grub. d/30_os-prober ###
Add
Menuentry "Windows 7 "{
Insmod NTFS
Set root = (hd0, 2)
Chainloader + 1
}
Note: Set root = (hd0, 2) Where hd0 represents the hard disk, and 2 represents the C disk.
2. Modify the boot sequence:
Grub2-set-default "Windows 7"
Verify default startup items:
Grub2-editenv list
Output:
Saved_entry = Windows 7
Execute after completion
Grub2-mkconfig-O/boot/grub2/grub. cfgreboot
Original article: http://www.cnblogs.com/keleman/archive/2017/04/30/6790795.html
Centos7 change Bootstrap wait time