Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
which program is removing my kernel files?
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
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2571
Location: Edmonton, AB

PostPosted: Thu Apr 02, 2009 5:27 am    Post subject: which program is removing my kernel files? Reply with quote

I don't have a need to use the latest or most current kernels so sometimes I keep an old one until I'm forced to upgrade.
an example, I was using: 2.6.25-gentoo-r7 but since I upgraded to gcc I needed to recompile the kernel with new gcc and it turn out files:
Quote:
-rw-r--r-- 1 root root 2430 Oct 9 16:13 Kbuild
-rw-r--r-- 1 root root 101926 Apr 1 17:06 MAINTAINERS
-rw-r--r-- 1 root root 56771 Apr 1 17:06 Makefile

are gone, so I had to switch to newer kernel linux-2.6.27-gentoo-r8

Any ideal which program is removing the configuration files from /usr/src/linux-kernel-in-use ?
I have tmpwatch installed but couldn't fined anything in there that would touch /use/src/ directory, or is there?
_________________
#Thelma
Back to top
View user's profile Send private message
yabbadabbadont
Advocate
Advocate


Joined: 14 Mar 2003
Posts: 4791
Location: 2 exits past crazy

PostPosted: Thu Apr 02, 2009 6:04 am    Post subject: Reply with quote

Did you happen to run an "emerge --depclean" at some point? If you weren't paying close attention, it would remove older kernel sources.
Back to top
View user's profile Send private message
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2571
Location: Edmonton, AB

PostPosted: Thu Apr 02, 2009 6:07 am    Post subject: Reply with quote

yabbadabbadont wrote:
Did you happen to run an "emerge --depclean" at some point? If you weren't paying close attention, it would remove older kernel sources.


I think you are correct, I remember running --depclean.
Is there a way to protect kernel-in-use configuration files?
_________________
#Thelma
Back to top
View user's profile Send private message
yabbadabbadont
Advocate
Advocate


Joined: 14 Mar 2003
Posts: 4791
Location: 2 exits past crazy

PostPosted: Thu Apr 02, 2009 6:13 am    Post subject: Reply with quote

Other than paying attention to what you are doing... not that I know of. :D
Back to top
View user's profile Send private message
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2571
Location: Edmonton, AB

PostPosted: Thu Apr 02, 2009 6:38 am    Post subject: Reply with quote

I think statement in /etc/make.conf
Code:
CONFIG_PROTECT="/usr/src/linux/*"

should do the trick isn't it?
_________________
#Thelma
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 15463

PostPosted: Fri Apr 03, 2009 3:00 am    Post subject: Reply with quote

According to the manual page, packages listed in world are never removed by --depclean. Use emerge --noreplace sys-kernel/gentoo-sources:my-favorite-version to add a specific slot to the world file. That should prevent --depclean from removing it. If you do this, you will need to explicitly emerge --unmerge that version when you upgrade.
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