修改/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 7 ultimate'{
set root=(hd0,1)
chainloader +1
boot
}
保存,运行grub2-mkconfig -o /boot/grub2/grub.cfg(root权限下)
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)