Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Symlink to new kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
-valheru-
Tux's lil' helper
Tux's lil' helper


Joined: 26 Oct 2005
Posts: 125

PostPosted: Fri Oct 28, 2005 9:06 pm    Post subject: Symlink to new kernel Reply with quote

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
View user's profile Send private message
Headrush
Watchman
Watchman


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Fri Oct 28, 2005 9:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
beandog
Bodhisattva
Bodhisattva


Joined: 04 May 2003
Posts: 2072
Location: /usa/utah

PostPosted: Fri Oct 28, 2005 9:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum