centos7 change the boot entry latency
centos7 has not grub, use grub2.
[Root] # vi /boot/grub2/grub.cfg
Locate and change the start time (timeout)
[root]# grub2-mkconfig -o /boot/grub2/grub.cfg
[root]# reboot
Restart way to see the boot timeout waiting time
Supplementary:
/ *
/ etc / default / GRUB and ???? /etc/grub.d/
* /
A guide Win7:
1. Open /boot/grub2/grub.cfg with the root
2. Found ### BEGIN /etc/grub.d/30_os-prober ###
is added after
menuentry "Windows 7" {
insmod ntfs
set root=(hd0,2)
chainloader +1 }
Description: set root = (hd0,2) wherein hd0 represents a hard disk, the disk 2 represents C
Second, modify the boot sequence:
# grub2-set-default "Windows 7"
Verify that the default startup items:
# grub2-editenv list
Output:
saved_entry=Windows 7
After it's happened executed
# grub2-mkconfig -o /boot/grub2/grub.cfg
# reboot
Original: http://www.cnblogs.com/keleman/archive/2017/04/30/6790795.html
centos7 has not grub, use grub2.
[Root] # vi /boot/grub2/grub.cfg
Locate and change the start time (timeout)
[root]# grub2-mkconfig -o /boot/grub2/grub.cfg
[root]# reboot
Restart way to see the boot timeout waiting time
Supplementary:
/ *
/ etc / default / GRUB and ???? /etc/grub.d/
* /
A guide Win7:
1. Open /boot/grub2/grub.cfg with the root
2. Found ### BEGIN /etc/grub.d/30_os-prober ###
is added after
menuentry "Windows 7" {
insmod ntfs
set root=(hd0,2)
chainloader +1 }
Description: set root = (hd0,2) wherein hd0 represents a hard disk, the disk 2 represents C
Second, modify the boot sequence:
# grub2-set-default "Windows 7"
Verify that the default startup items:
# grub2-editenv list
Output:
saved_entry=Windows 7
After it's happened executed
# grub2-mkconfig -o /boot/grub2/grub.cfg
# reboot
Original: http://www.cnblogs.com/keleman/archive/2017/04/30/6790795.html