如何更改 Ubuntu 服务器 13.10 中的启动内核顺序?
grep 菜单项 /boot/grub/grub.cfg
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-9e268fa1-53bd-4d32-a3b3-ae07362f89cb' {
submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-9e268fa1-53bd-4d32-a3b3-ae07362f89cb' {
menuentry 'Ubuntu, with Linux 3.11.0-12-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.11.0-12-generic-advanced-9e268fa1-53bd-4d32-a3b3-ae07362f89cb' {
menuentry 'Ubuntu, with Linux 3.11.0-12-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.11.0-12-generic-recovery-9e268fa1-53bd-4d32-a3b3-ae07362f89cb' {
menuentry 'Ubuntu, with Linux 3.4.7-030407-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.4.7-030407-generic-advanced-9e268fa1-53bd-4d32-a3b3-ae07362f89cb' {
menuentry 'Ubuntu, with Linux 3.4.7-030407-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.4.7-030407-generic-recovery-9e268fa1-53bd-4d32-a3b3-ae07362f89cb' {
menuentry 'Memory test (memtest86+)' {
menuentry 'Memory test (memtest86+, serial console 115200)' {
我想设置默认内核menuentry 'Ubuntu, with Linux 3.4.7-030407-generic'
在我在谷歌上找到的所有文档中,建议:GRUB_DEFAULT
在/etc/default/grub
和中更改update-grub
但 GRUB_DEFAULT 不会影响submenu
我的内核所在的位置。
例如,如果我正在选择,GRUB_DEFAULT=2
那么menuentry 'Memory test (memtest86+, serial console 115200)'
就会被选中。