我已更新 /etc/grub.d/40_custom 以添加自定义菜单项,如下所示:
menuentry "My OS"{
rootnoverify (hd1,0)
chainloader +1
}
我运行这个命令:
grub2-mkconfig –o /boot/grub2/grub.cfg
它显示输出:
### BEGIN /etc/grub.d/40_custom ###
# 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 "My OS"{
rootnoverify (hd1,0)
chainloader +1
}
### END /etc/grub.d/40_custom ###
之后就什么都没做了。你能告诉我我还需要做什么吗?谢谢。