1 |
On Sun, Mar 29, 2009 at 7:45 PM, Eric Thibodeau <kyron@××××××××.com> wrote: |
2 |
> I'll top-post this one since there are some errors in the LiveCD-Howto (a |
3 |
> mix of two approaches I had). The HOWTO doesn't take clearly into |
4 |
> consideration the fact that there can actually be 2 resulting CDs (normal |
5 |
> and minimal). The process goes as follows: |
6 |
> |
7 |
> A) Build NFSroot Image: |
8 |
> 1,2,3: build stage images |
9 |
> 4: build nfstoot image |
10 |
> The real PITA here is generally kernel + AuFS related. The package and |
11 |
> kernel cache deletion steps are _required_ between rebuild, otherwise |
12 |
> catalyst uses cached packages and things just won't work. There might be new |
13 |
> features to fix that in newer catalysts. |
14 |
> |
15 |
|
16 |
When you say the package and kernel cache deletion steps are you |
17 |
talking about this command: |
18 |
find /var/tmp/catalyst/packages/ -regextype posix-extended -regex |
19 |
'.*(beowulf|aufs|ldap-auth|torque|diradm).*' -exec rm -f {} \ |
20 |
|
21 |
Should I delete the caches after every call to catalyst, or just after |
22 |
LiveCD steps 3 and 4? |
23 |
|
24 |
> B) Build LiveCD |
25 |
> 1,2,3: build stage images selecting the spec files that reflect the |
26 |
> desired end CD (minimal or with desktop). The main difference are some USE |
27 |
> flags, I'm not even sure the differentiation is still relevant. |
28 |
> 4: build livecd-stage1 |
29 |
> 5: a) bind-mount the nfsroot image into the livecd's playgournd |
30 |
> b) build the livecd-stage2 using catalyst. |
31 |
> |
32 |
> The rational behind 5 a) is that the LiveCD is actually built in 5 b) and |
33 |
> pulls in everything that will reside in |
34 |
> /var/git/clustering-livecd/catalyst/livecd/2008.0/overlay/ . This is the way |
35 |
> to include "extra files" in the CD which aren't part of a regular Gentoo |
36 |
> system. |
37 |
> |
38 |
> I'm sorry for the confusion, hope this clarifies the process and answers |
39 |
> your questions. |
40 |
> |
41 |
> Eric |
42 |
> |
43 |
> Tom Stellard wrote: |
44 |
>> |
45 |
>> I was finally able to build an x86 live CD image, but there are a few |
46 |
>> things about the build process I don't understand. Here are the |
47 |
>> directions for building the live CD as I understand them: |
48 |
>> |
49 |
>> 1. Build nfsroot using these spec files in this order: stage1.spec, |
50 |
>> stage2.spec, stage3.spec, nfsroot_stage4.spec |
51 |
>> |
52 |
>> 2. Bind mount nfsroot to |
53 |
>> |
54 |
>> /var/git/clustering-livecd/catalyst/livecd/2008.0/overlay/tftproot/nfsroot/x86 |
55 |
>> |
56 |
>> 3. Start building the live CD using these spec files in this order: |
57 |
>> stage1.spec stage2-desktop.spec stage3-desktop.spec |
58 |
>> |
59 |
>> 4.Unmount nfsroot |
60 |
>> |
61 |
>> 5. Run catalyst with these spec files: nfsroot_stage4.spec |
62 |
>> livecd-stage1-minimal.spec |
63 |
>> |
64 |
>> 6. Bind mount nfsroot again |
65 |
>> |
66 |
>> 7. Run catalyst with this spec file: livecd-stage2-minimal.spec |
67 |
>> |
68 |
>> My questions are: |
69 |
>> Why is it necessary to bind mount nfsroot in step 2? |
70 |
>> Why do we run nfsroot_stage4.spec again in step 5? |
71 |
>> |
72 |
>> Thanks. |
73 |
>> |
74 |
>> -Tom Stellard |
75 |
>> |
76 |
>> |
77 |
> |
78 |
> |
79 |
> |