How to remove entries from Grub2 menu.

Created by delance
Keywords:
grub menu remove lines
Last updated by:
delance

In the Grub menu, you have for each kernel two lines:
- first one for normal boot
- second for recovery boot (useful to manage issues like graphic driver)
Each time update-manager install a new kernel, it keeps the previous kernel.
Sometimes a new kernel doesn't support your hardware, and to be able to boot and fix issue, you need to use previous kernel. Unfortunately, it means that after some times you get lot of kernels in menu.
The best solution is to uninstall via packet management the previous kernels.
The solution is provided in:
   http://www.go2linux.org/clean-linux-kernel-images-grub-menu
----------
https://launchpad.net/~olivier-delance