ubuntu16.04修改grub启动顺序

https://askubuntu.com/questions/216398/set-older-kernel-as-default-grub-entry

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$ lsb_release -s -rdc
Ubuntu 16.04.4 LTS
16.04
xenial

$ update-grub --version
grub-mkconfig (GRUB) 2.02~beta2-36ubuntu3.17

$ grep -Ei 'submenu|menuentry ' /boot/grub/grub.cfg | sed -re "s/(.? )'([^']+)'.*/\1 \2/"
menuentry Ubuntu
submenu Advanced options for Ubuntu
menuentry Ubuntu, with Linux 4.4.0-34-generic
menuentry Ubuntu, with Linux 4.4.0-34-generic (upstart)
menuentry Ubuntu, with Linux 4.4.0-34-generic (recovery mode)
menuentry System setup
请作者喝一杯咖啡☕️