
我已經更新了 /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 ###
之後它什麼都不做。你能讓我知道我還需要做什麼嗎?謝謝。