Dr D's Abode

Tag: linux gentoo keernel gentoo-sources upgrade downgrade

Kernel Lock outs?

by on Dec.22, 2008, under Computers, Linux

So I am sitting here, upgrading my servers (mostly gentoo) and on the world (full system) update, its telling me it wants to install a different version of the kernel.

Let me jump back for a second.  Gentoo has very good customizations on what you can do, and for instance, I originally installed the gentoo-sources-2.6.26-r1 on one of my servers, and told it not to upgrade anything newer.  Everythings been going fine, until today, when its like “oh, you can install 2.6.25-r9!”  But wait, thats a downgrade.  So I tell Gentoo not to install anything older then 2.6.26-r1, and then it complains.  “!!! Ebuilds for the following packages are either all masked or don’t exist: sys-kernel/gentoo-sources.”  Well, whatever.  So I undid those changes, and decide to remove “gentoo-sources” from the world file, which basically says that its installed.  So now it works as intended.  But if I go to install an application dependant on the kernel source, then it will try to re-emerge them.  So I told the system that I’ve provided the software and specific version, which is basically saying “pretend its installed.”   And it still works.  So WTF

Long story short, if you use Gentoo, and its wanting to upgrade or downgrade the kernel, try removing gentoo-sources fromthe world file, but adding the exact version to the portage/packages.mask and portage/profile/packages.provided.

As a side note, on Fedora/Redhat/CentOS/YUM based systems, add a line stating “exclude=kernel*” to the /etc/yum.conf file (or the .repo files) and it will lock out kernel upgrades on those systems.

Comments Off on Kernel Lock outs? : more...

Geek Code

-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GIT d-(+) s:+ a C++ BL++++ P++>+++ L++(+++) E--- W++ N o K- w O M V-- PS
PE Y+ PGP+ t+ 5 X+ R tv b DI D+ G e+ h+ r-- y+
------END GEEK CODE BLOCK------

Linux Counter

Certifications


 

PSN Portable ID

Powered by

Hacker
 
Powered by Gentoo Linux