修改/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 'windows 8.1 ultimate'{
set root=(hd0,1)
chainloader +1
boot
}
保存,运行grub2-mkconfig -o /boot/grub2/grub.cfg(root权限下)