1 |
On Sunday 12 April 2009 21:31:42 Joseph wrote: |
2 |
|
3 |
> I would like to protect the current kernel as well, will statement in |
4 |
> make.conf works? CONFIG_PROTECT="/usr/src/linux/*" |
5 |
> |
6 |
> I've not test it yet. |
7 |
|
8 |
No, that will not work as no existing files are being overwritten. |
9 |
|
10 |
To ensure that a kernel sources are never touched by --declean, add them to |
11 |
world, as in |
12 |
|
13 |
emerge gentoo-sources-2.6.29 |
14 |
|
15 |
If it's already installed but not in world use -1 to tell portage not to go |
16 |
through the install process, but just add it to world. Or just edit the world |
17 |
file by hand. |
18 |
|
19 |
Or you could just let --depclean remove it. Ask yourself this: Once you have |
20 |
built a kernel, installed it, and built all the out-of-tree modules, how often |
21 |
do you go back and use those sources again? For most people the true answer is |
22 |
"very seldom, if ever". |
23 |
|
24 |
/usr/src tends to get very big very quick if not kept under control, each |
25 |
version comes in at about 500M or so. That can fill /usr quite quickly. |
26 |
|
27 |
-- |
28 |
alan dot mckinnon at gmail dot com |