有时候用一键脚本安装bbrplus需要手动调整内核的启动顺序才能正常使用,以下记录下过程
1.grep目前的内核cat /boot/grub/grub.cfg |grep "menuentry "
得到的结果如下所示
menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-4dd00551-6a99-455a-a7c8-bd1e42d4ecdd' {
menuentry 'Debian GNU/Linux, with Linux 4.19.0-11-cloud-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-11-cloud-amd64-advanced-4dd00551-6a99-455a-a7c8-bd1e42d4ecdd' {
menuentry 'Debian GNU/Linux, with Linux 4.19.0-11-cloud-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-11-cloud-amd64-recovery-4dd00551-6a99-455a-a7c8-bd1e42d4ecdd' {
menuentry 'Debian GNU/Linux, with Linux 4.14.182-bbrplus' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.14.182-bbrplus-advanced-4dd00551-6a99-455a-a7c8-bd1e42d4ecdd' {
menuentry 'Debian GNU/Linux, with Linux 4.14.182-bbrplus (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.14.182-bbrplus-recovery-4dd00551-6a99-455a-a7c8-bd1e42d4ecdd' {
2.修改grub
vi /etc/default/grub
将 GRUB_DEFAULT=0 修改为
GRUB_DEFAULT="Advanced options for Debian GNU/Linux>Debian GNU/Linux, with Linux 4.14.182-bbrplus"
update-grub