GRUB 忽略配置文件

GRUB 忽略配置文件

运行 Ubuntu 16.04 LTS 机器时,我注意到内核升级后出现了一些问题。/boot/grub/grub.cfg列表下的 GRUB 配置仅有的4.4.0内核,但是,当启动机器时,我只能从几个不同版本的4.2.0内核中进行选择。我对 GRUB 实际上从哪里提取其配置一无所知,因为它似乎忽略了由sudo update-grub.创建的所述路径下的设置。

编辑:这个问题基于 Grep 输出

$ grep 'menuentry' /boot/grub/grub.cfg

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
  menuentry_id_option=""
export menuentry_id_option
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-f0724a95-d885-4cec-b74c-635d61f32c73' {
submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-f0724a95-d885-4cec-b74c-635d61f32c73' {
    menuentry 'Ubuntu, with Linux 4.4.0-53-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-53-generic-advanced-f0724a95-d885-4cec-b74c-635d61f32c73' {
    menuentry 'Ubuntu, with Linux 4.4.0-53-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-53-generic-recovery-f0724a95-d885-4cec-b74c-635d61f32c73' {
    menuentry 'Ubuntu, with Linux 4.4.0-51-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-51-generic-advanced-f0724a95-d885-4cec-b74c-635d61f32c73' {
    menuentry 'Ubuntu, with Linux 4.4.0-51-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-51-generic-recovery-f0724a95-d885-4cec-b74c-635d61f32c73' {
menuentry 'Memory test (memtest86+)' {
menuentry 'Memory test (memtest86+, serial console 115200)' {

相关内容