Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] protect running kernel fomr depclean?
Date: Sun, 12 Apr 2009 20:04:10
Message-Id: 49E248C8.8020107@gmail.com
In Reply to: Re: [gentoo-user] protect running kernel fomr depclean? by Jacques Montier
1 Jacques Montier wrote:
2 > Dale a gentiment tapote:
3 >
4 >> Mark Knecht wrote:
5 >>
6 >>
7 >>> A problem I often have after a big update is emerge -p --depclean
8 >>> tells me it is going to remove my running kernel.
9 >>>
10 >>> sys-kernel/gentoo-sources
11 >>> selected: 2.6.26-r4
12 >>> protected: none
13 >>> omitted: 2.6.25-r8 2.6.27-r10
14 >>>
15 >>> dragonfly ~ # uname -a
16 >>> Linux dragonfly 2.6.26-gentoo-r4 #1 SMP PREEMPT Tue Dec 9 11:08:39 PST
17 >>> 2008 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz GenuineIntel GNU/Linux
18 >>> dragonfly ~ #
19 >>>
20 >>> My general reaction is to remove packages by hand at this point but
21 >>> today I have 30-40 and would like to protect this kernel source. Is
22 >>> there a generaic way to *always* protect the kernel that is currently
23 >>> running?
24 >>>
25 >>> Thanks,
26 >>> Mark
27 >>>
28 >>>
29 >>>
30 >>>
31 >>>
32 >> Just emerge it with the exact version. emerge
33 >> =sys-kernel/gentoo-sources-2.6.26-r4 should work. There is a option to
34 >> add it to world without actually "compiling" it again but I can't recall
35 >> what it is.
36 >>
37 >> Feel free to correct any typo's.
38 >>
39 >> Dale
40 >>
41 >> :-) :-)
42 >>
43 >>
44 >>
45 >>
46 > Is it emerge --noreplace <atom> ?
47 >
48 > --
49 > Jacques
50 >
51 >
52 >
53 >
54 >
55
56 I think that is it. I don't think I have ever used it but that sounds
57 right at least. I did a quick read of that section of the man page.
58
59 You can also add it to the world file. Mine looks like this:
60
61 sys-kernel/gentoo-sources:2.6.25-r9
62 sys-kernel/gentoo-sources:2.6.27-r7
63 sys-kernel/gentoo-sources:2.6.28-r2
64
65 I don't know if it matters but I notice my world file is in alphabetical
66 order. Portage do that now? That's pretty neat.
67
68 Dale
69
70 :-) :-)

Replies

Subject Author
Re: [gentoo-user] protect running kernel fomr depclean? Mark Knecht <markknecht@×××××.com>