LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 09-18-2008, 07:09 AM   #1
harry2006
Member
 
Registered: Aug 2006
Location: /hawaii/honolulu/downtown
Distribution: Fedora 10[Cambridge] and Ubuntu 9.04[Jaunty]
Posts: 201

Rep: Reputation: 30
how to change the default no kernels that can be installed?


Hi all. I remember the default count for the maximum no of kernels , keeping the old onethat can be installed is 2, right? as I vaguely remember this is basically controlled by some variable like "listnumber", may be I'm wrong about this name. I changed this to 3 assuming that I can install and hence display 3 diff kernels durign bootup in the grub-boot-message. But I don't remember the location of the file that contaisn this varailbe; tried to google but no help. Can some one please point me to the correct file? Thank you.
 
Old 09-18-2008, 09:18 AM   #2
verndog
Member
 
Registered: Oct 2007
Posts: 278

Rep: Reputation: 67
Are you referring to menu.lst file, maybe. It is located "/boot/grub/menu.lst"
 
Old 09-18-2008, 11:48 PM   #3
harry2006
Member
 
Registered: Aug 2006
Location: /hawaii/honolulu/downtown
Distribution: Fedora 10[Cambridge] and Ubuntu 9.04[Jaunty]
Posts: 201

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by verndog View Post
Are you referring to menu.lst file, maybe. It is located "/boot/grub/menu.lst"
no its not menu.lst in /boot/grub ...i want the name of that entry which specifies this count. Say you have only one kernel entry in menu and then you installed a new entry, so now both 'll be shown in menu during boot-up, but say you want to install one new kernel[and that is different frmo the last two] then the oldest will be kicked out frmo the list[as the default count is 2], this just works like a queue. So if you want to keep that 3rd one too, then you have to change this count to 3[i don't know the upper limit for this]. hope I made it clear. Thank you very much.
 
Old 10-10-2008, 07:33 AM   #4
harry2006
Member
 
Registered: Aug 2006
Location: /hawaii/honolulu/downtown
Distribution: Fedora 10[Cambridge] and Ubuntu 9.04[Jaunty]
Posts: 201

Original Poster
Rep: Reputation: 30
Its pretty simple, just change the value of this "installonly_limit" entry in /etc/yum.conf to what ever you like, the default is 2. so basically you do something like this
Code:
installonly_limit=3
if you want to install and want all three of them(say 3 different kernels) to be shown in grub during startup. You must note that this option applies only to those things that are basically installed and not updated during an "yum update". There is a handful of packages that are basically installed. You can also check
Code:
man yum.conf
for more information. Thank you all for your responses.
 
Old 10-10-2008, 08:45 AM   #5
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
It is worth noting, for the record, that what you are describing is a yum feature, not a Linux restriction.

There is no practical limit on the number of kernel images that can be built and stored (on /boot), as long as you have enough space to store them.

You do need "older versions" for very-obvious reasons: "what if the newly-installed kernel doesn't boot?" But, you don't need to keep too many of them. So, most maintenance-systems have a way to "cycle off" the older ones so that only the most recent "n" copies are retained at any time. They will update the boot-loader menu files accordingly.

It's also worth noting that, when you do decide to remove a kernel, you should do so using the maintenance-system (whatever it is), i.e. "don't just remove the files." The maintenance system tries to keep a record of what is actually installed, and you want that record to be up-to-date.
 
Old 10-13-2008, 06:50 AM   #6
harry2006
Member
 
Registered: Aug 2006
Location: /hawaii/honolulu/downtown
Distribution: Fedora 10[Cambridge] and Ubuntu 9.04[Jaunty]
Posts: 201

Original Poster
Rep: Reputation: 30
Yes, you rightly said. Its a yum feature and not a Linux restriction. I do agree. Thanks for making things clear to me as I'm still learning the basics. Thank you.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do i change kernels? matrim Fedora - Installation 5 03-17-2007 01:23 AM
If you installed huge26.s or the test26.s kernels cwwilson721 Slackware 46 01-27-2007 02:27 PM
GRUB boot with 2 kernels installed philnk Linux - Software 2 07-07-2005 07:47 PM
how do i change kernels? fatblueduck Linux - Software 5 04-02-2005 05:55 AM
Differences between default, smp, and bigsmp kernels ? reg3ter Linux - Newbie 8 03-30-2005 06:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 04:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration