View previous topic :: View next topic |
Author |
Message |
-valheru- Tux's lil' helper
Joined: 26 Oct 2005 Posts: 125
|
Posted: Fri Oct 28, 2005 9:06 pm Post subject: Symlink to new kernel |
|
|
Just a n00bish question. It seems we can have multiple kernels to boot from within Grub. If I have 3 kernels based upon the gentoo 2.6.13-gentoo-r3 kernel, but with different options in each, must I change my symlink to the kernel when I am about to switch from one to the other?
Thanks
Val |
|
Back to top |
|
|
Headrush Watchman
Joined: 06 Nov 2003 Posts: 5597 Location: Bizarro World
|
Posted: Fri Oct 28, 2005 9:39 pm Post subject: |
|
|
No. They just need to be named differently and referenced in your bootloader. (usually stored in /boot)
eg Code: | title Gentoo Linux
root (hd0,1)
kernel /boot/kernel-2.6.13-gentoo-r5 root=/dev/sda2 vga=0x31a splash=silent,theme:livecd-2005.1 CONSOLE=/dev/tty1 quiet
initrd /boot/initrd-livecd-2005.1
title Gentoo Linux
root (hd0,1)
kernel /boot/kernel-2.6.13-gentoo-r5-modified root=/dev/sda2 vga=0x31a splash=silent,theme:livecd-2005.1 CONSOLE=/dev/tty1 quiet
initrd /boot/initrd-livecd-2005.1
|
Same kernel version, just rename one.
(You'll have to manage the .config file in the /usr/src/linux directories or copy the directory and maintain separate directories.
Additionally, the kernel config has an option to append a custom version number which might be wise to differentiate your kernels.) |
|
Back to top |
|
|
beandog Bodhisattva
Joined: 04 May 2003 Posts: 2072 Location: /usa/utah
|
Posted: Fri Oct 28, 2005 9:41 pm Post subject: |
|
|
If you use GRUB, just mount boot, and do make install from /usr/src/linux each time. That will update the files in /boot/ for you and move the old ones to <file>.old
See make help in /usr/src/linux
That way, you can always boot from /boot/vmlinuz and its always symlinked to the latest one you did make install on. _________________ If it ain't broke, tweak it. dvds | blurays | blog | wiki |
|
Back to top |
|
|
|