View previous topic :: View next topic |
Author |
Message |
jesnow l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 26 Apr 2006 Posts: 895
|
Posted: Tue Apr 07, 2015 1:47 am Post subject: This one weird trick solved all my kernel version problems |
|
|
Sorry about the subject line.
I like keeping a kernel version around for a while (I hung onto 3.14.16 for months after it was out of portage), but if you don't watch out, portage will remove it for you when you do a normal emerge --depclean. I'm just dumb enough that I forget to not let that happen.
The way round it is to get the particular slot of the kernel you like into your world file, like this:
Code: | # emerge --noreplace sys-kernel/gentoo-sources:3.14.16
|
Now 3.14.16 will not be touched by emerge --depclean, but newer kernel versions can come and go, until I build my next stable kernel and do the same.
A good reason to do this is sloth, I just don't want to change my kernel until I have to, and by then the sources are no longer in portage. Also, I have to install third party drivers each time and that's a pain, so I do it as infrequently as I can.
And I lost 10 pounds of belly fat. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fpemud Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 15 Feb 2012 Posts: 352
|
Posted: Tue Apr 07, 2015 8:58 am Post subject: |
|
|
Put this in /etc/portage/make.conf:
Code: | UNINSTALL_IGNORE="${UNINSTALL_IGNORE} /usr/src/linux-*" |
Then portage won't touch any old linux source code. It is the recommended way to solve this problem. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
John R. Graham Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/1323583785534df64897db0.jpg)
Joined: 08 Mar 2005 Posts: 10732 Location: Somewhere over Atlanta, Georgia
|
Posted: Tue Apr 07, 2015 10:33 am Post subject: |
|
|
fpemud wrote: | Put this in /etc/portage/make.conf:
Code: | UNINSTALL_IGNORE="${UNINSTALL_IGNORE} /usr/src/linux-*" |
Then portage won't touch any old linux source code. It is the recommended way to solve this problem. | No, it's not. jesnow has got it exactly right. Well, except for the sloth part.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Dr.Willy Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 15 Jul 2007 Posts: 547 Location: NRW, Germany
|
Posted: Tue Apr 07, 2015 12:43 pm Post subject: |
|
|
I don't think having portage handle kernels doesn't provide any benefit at all.
You save a bit of effort on the installing side and have a bit of additional effort on the uninstalling side. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jesnow l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 26 Apr 2006 Posts: 895
|
Posted: Wed Apr 08, 2015 12:37 pm Post subject: |
|
|
Thank you, though I think this works too, I didn't know about it. My only reservation would be the accumulation of old sources in /usr/src. And which one of these 10 has all its compiled-in drivers? My way I always have just the sources I invested time in, plus the latest set for when I need to change something.
John R. Graham wrote: | fpemud wrote: | Put this in /etc/portage/make.conf:
Code: | UNINSTALL_IGNORE="${UNINSTALL_IGNORE} /usr/src/linux-*" |
Then portage won't touch any old linux source code. It is the recommended way to solve this problem. | No, it's not. jesnow has got it exactly right. Well, except for the sloth part. :wink:
- John |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|