双系统 windows引导项添加

[root@MiWiFi-R2D-srv ~]# vi /etc/grub.d/40_custom

#!/bin/sh

exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
menuentry 'Windows7'{
    set root=(hd0,1)
    chainloader +1
}                                                                         
[root@MiWiFi-R2D-srv ~]# grub2-mkconfig -o /boot/grub2/grub.cfg
[root@MiWiFi-R2D-srv ~]# reboot
原文地址:https://www.cnblogs.com/liweiming/p/7634615.html