How can we add a kernel to grub2? i knew the stuff we could do with the former versions, but it seems to have changed. What files should we edit?
feedback
|
migrated from stackoverflow.com Nov 8 '10 at 13:58
This question came from our site for professional and enthusiast programmers.
|
To add a new kernel to grub2:
update-grub will scan your computer for kernels, and create a listing of available kernels at boot. In order for you to select which kernel to boot at boot time, you may have to hold the SHIFT button down right after your BIOS does it's posting. You can edit /etc/default/grub to change default boot options and parameters that you may need. | |||
|
feedback
|
|
In Debian/Ubuntu systems this is generated by | |||
|
feedback
|
|
If the new kernel is installed with dpkg (as if it's compiled with make-kpkg), update-grub2 is enough (it removes no more existent kernels, too) | |||
|
feedback
|
|
You don't "edit" to add kernels anymore. It scans and adds them dynamically. If you MUST add one a scan doesn't find you should look in /etc/grub.d and modify or copy and custom40(it is added last so it's a great place to test your config before you put it at the top of your list). | |||
|
feedback
|
|
Try | |||
feedback
|
