0

I am currently using ubuntu 14.04 with the kernel 3.13.0-37-generic, I want to try booting from another kernel 3.17.01 (latest stable release).

I have downloaded and built the 3.17.01 kernel from source. Based on what I have understood so far, I need to copy bzImage file to /boot folder and change the grub config file accordingly.

Is this the correct way to do so ? If yes, then can anyone tell me how to configure the grub so that I may be able to boot from both 3.13 and 3.17 kernel (2 options in grub menu)

If not , then what are the steps to do so ?

I am using grub 2 currently.

4
  • Not going to post this as an official answer since I'm unsure, but I think once the image is in /boot, a nice sudo update-grub should take care of the rest.
    – MGodby
    Oct 17, 2014 at 15:51
  • @MGodby I don't think that's possible, because there are several other important files present in the /boot folder regarding the currently running kernel. I don't think grub will be generating those files. Also, on some forums it was written that I need to manually generate initramfs. Not sure, how to do that though. Oct 17, 2014 at 15:53
  • Ah, yes, the initramfs do need generating first. GRUB supports multiple images once they are present, however. I guess the main part of what I wanted to say is that I don't think you need to manually update grub.conf. I could be wrong, though.
    – MGodby
    Oct 17, 2014 at 15:55
  • You can get the .debs from the mainline PPA, and install with dpkg -i or double clicking. Oct 17, 2014 at 16:50

1 Answer 1

1

After having configured the kernel, you can use make-kpkg to compile it and make a .deb package for easy installation and de-installation. If you install such a package, the new kernel is automatically added to your grub config.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .