You are here: Home » Linux » how do i switch custom kernels?

how do i switch custom kernels?

2 votes

hello guys,

i have created and installed a new kernel in my ubuntu system, but now i have added a new system call and created a new kernel, how do i set this new kernel as the one the OS should boot from.

dpkg -i kernel-image-2.6.deb

i tried this on my first kernel and this set the kernel to this one

then i added a new system call compiled the new kernel and called

dpkg -i kernel-image-2.6.Custom.deb

but now when i reboot it stays as the older kernel,

any ideas on how to switch kernels?????

thank you

0 votes

When you install a kernel image produced by the normal packaging system, the new kernel is registered with the bootloader. The command to do this is indicated by the postinst_hook setting in /etc/kernel-img.conf; the default is update-grub.

With Grub2 (the default bootloader), under the default configuration, you will not see a menu at boot time unless you have another operating system besides Ubuntu. You can make the menu appear at boot time by pressing Shift when your computer boots (press the key after the BIOS has initialized the keyboard and hold it until the Grub menu appears). If you want the menu to always appear, edit /etc/default/grub and comment out the GRUB_HIDDEN_TIMEOUT setting. You can change the default booted kernel through the GRUB_DEFAULT setting.

Answered by Gilles on October 24, 2010.

Content from Superuser of Stack Exchange. Original article at Superuser.


Related Tags

Linux 5376
Operating Systems 277
Linux Kernel 10