请教如何用grub2引导linux内核

如题所述

执行update-grub应该可以找到新内核的引导吧?如果不行,编辑grub.cfg手动添加启动项:
menuentry
"我的Ubuntu
"
{
linux
/boot/vmlinuz-xxx
initrd
/boot/initrd-xxx.lz
}
或者编辑/etc/grub.d/40_os-prober,将上面代码添加到文件末。然后执行update-grub。
温馨提示:答案为网友推荐,仅供参考