1 |
On Wed, 2007-06-20 at 15:35 -0700, Chris Gianelloni wrote: |
2 |
> On Wed, 2007-06-20 at 13:23 +0300, Philipp Riegger wrote: |
3 |
> > On 20.06.2007, at 01:44, Chris Gianelloni wrote: |
4 |
> > |
5 |
> > > The best/most tested method for changing USE is boot/kernel/$x/use in |
6 |
> > > your spec file. |
7 |
> > > |
8 |
> > >> Again, what does the [boot/kernel:x] in the documentation stand for? |
9 |
> > > |
10 |
> > > Huh? |
11 |
> > |
12 |
> > You call it $x above, the documentation calls it [boot/kernel:x] |
13 |
> > (e.g. boot/kernel/[boot/kernel:x]/use). |
14 |
> |
15 |
> That's completely inconsequential. I could have called it: |
16 |
> boot/kernel/pinkponies/use and it still means the same thing. |
17 |
> |
18 |
|
19 |
To actually provide an answer: |
20 |
|
21 |
In your spec you specify boot/kernel: followed by an arbitrary number of |
22 |
arbitrary kernel names for your livecd, following that you are required |
23 |
to have a block of config options describing each of those kernels. |
24 |
|
25 |
So for example, lets take the spec for the 2007.0 release media for |
26 |
ppc64. First we specify: |
27 |
|
28 |
boot/kernel: ibmpower G5 |
29 |
|
30 |
What that states is that we are going to have two kernels on this CD, |
31 |
one with the name of ibmpower and the other with the name of G5. |
32 |
|
33 |
Next we describe these kernels: |
34 |
|
35 |
## IBM hardware |
36 |
boot/kernel/ibmpower/sources: sys-kernel/gentoo-sources |
37 |
boot/kernel/ibmpower/use: usb extlib |
38 |
boot/kernel/ibmpower/config: /2007.0/kernel_configs/installcd-power-gentoo.config |
39 |
boot/kernel/ibmpower/console: ttyS0,9600 hvc0 hvsi0 |
40 |
boot/kernel/ibmpower/machine_type: ibm |
41 |
boot/kernel/ibmpower/extraversion: ibm |
42 |
|
43 |
## Apple hardware |
44 |
boot/kernel/G5/sources: sys-kernel/gentoo-sources |
45 |
boot/kernel/G5/use: usb extlib |
46 |
boot/kernel/G5/config: /2007.0/kernel_configs/installcd-G5-gentoo.config |
47 |
boot/kernel/G5/console: ttyS0,57600 |
48 |
boot/kernel/G5/extraversion: G5 |
49 |
|
50 |
As you can see above the third parameter (what Chris calls $x or |
51 |
pinkponies and you call [boot/kernel:x]) comes from the list of kernel |
52 |
names provided in boot/kernel. |
53 |
|
54 |
Hope that answers your question. |
55 |
|
56 |
--Dan |