View previous topic :: View next topic |
Author |
Message |
jamtat Apprentice
Joined: 09 Aug 2003 Posts: 162
|
Posted: Sun Mar 29, 2015 5:37 pm Post subject: Help interpeting kernel-related depclean output |
|
|
Still trying to finish installing and configuring my first Gentoo system. Initially I made a mistake in selecting the profile, so I later modified the profile and ran emerge -e world. When that process finished, output gave the recommendation to run emerge --depclean, which I did. It seems I got new kernel sources when I ran emerge -e world, as I see under /usr/src a linux-3.18.9-gentoo directory, whereas the kernel I got on initial installation was 3.18.7 (/usr/src/linux is still a symlink to the /usr/src/linux-3.18.7-gentoo directory). I got this kernel-related message at the end of running emerge --depclean, with which I need some help interpreting: Code: | * Messages for package sys-kernel/gentoo-sources-3.18.7:
* Note: Even though you have successfully unmerged
* your kernel package, directories in kernel source location:
* /usr/src/linux-3.18.7-gentoo
* with modified files will remain behind. By design, package managers
* will not remove these modified files and the directories they reside in. |
What, exactly, does unmerge mean here? The /usr/src/linux-3.18.7-gentoo directory (and all subdirectories under it), as mentioned, is still on this machine. It is still symlinked to /usr/src/linux. So, when I go to build a kernel, unless I explicitly enter the /usr/src/linux-3.18.9-gentoo directory, the 3.18.7 kernel is the one that will get built, right? So, it seems to be telling me that if I want to build the new kernel I need to take some action to get rid of the old kernel sources and symlink the new kernel sources to /usr/src/linux, but what action is to be taken, should I decide to do that?
I could, of course, manually delete the old kernel directory and sub-directories, then symlink /usr/src/linux to the new kernel sources directory. But I'm guessing that's not what's needed: probably doing that would mess with the installation database and system configuration in a negative way. So, what does one do if one wants to move to the new kernel? Likewise, what if no kernel upgrades are wanted as a general rule? In other words, if I want to run the kernel that was originally installed for the foreseeable future, building a new one only in rare circumstances where I might add new hardware or in case some kernel vulnerability would be exposed?
Your input on these questions will be appreciated. |
|
Back to top |
|
|
jfranz2 n00b
Joined: 24 Oct 2014 Posts: 37
|
Posted: Sun Mar 29, 2015 5:41 pm Post subject: Re: Help interpeting kernel-related depclean output |
|
|
/usr/src/linux is what ever is symlinked via eselect kernel list. When you upgrade your kernel and unmerge a kernel it's remnants will still remain in /usr/src/, there for you have to manually remove the old kernel's remains in that directory. DO NOT delete it if you're still using that particular kernel, only after you've successfully changed kernels. _________________ #TYBG |
|
Back to top |
|
|
|
|
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
|
|