1 |
On Wed, 2005-09-28 at 10:43 +0200, Georg Lippold wrote: |
2 |
> Hi Eliot, |
3 |
> |
4 |
> there are serveral Knoppix remaster (google:"knoppix remaster") Howto's |
5 |
> out there, you may have a look at them, but I cannot guarantee for it. |
6 |
> One difference: LiveCD's usually use squashfs while Knoppix uses cloop. |
7 |
|
8 |
Right. Any init script that you dump into the initramfs image will |
9 |
*only* be in the initramfs image and not on the live filesystem. You |
10 |
need to modify the squashfs image to get it into the filesystem. |
11 |
|
12 |
> Eliot Gable wrote: |
13 |
> > Well, I assume you are talking about the catalyst build? I am trying to stay |
14 |
> > away from the catalyst utilities. I do not want to build a whole new livecd |
15 |
> > image. I just want to use the x86 minimal livecd image I downloaded. I do |
16 |
> > not see any livecd-stage2.spec file on that CD. I am not at all familiar |
17 |
> > with catalyst and I was not planning on spending the time learning it. I |
18 |
> > thought this would be a relatively simple task -- just unpacking the files |
19 |
> > on the CD, adding a couple in, and repackaging them. Can I not do it this |
20 |
> > way? |
21 |
> > |
22 |
> > On 9/27/05, Georg Lippold <georg.lippold@×××.de> wrote: |
23 |
> > |
24 |
> >>Hi Eliot, |
25 |
> >> |
26 |
> >>just use |
27 |
> >> |
28 |
> >>livecd/root_overlay: /path |
29 |
> >> |
30 |
> >>in your livecd-stage2.spec |
31 |
> >> |
32 |
> >>In /path, there is this structure |
33 |
> >> |
34 |
> >> |
35 |
> >>>find . -print |
36 |
> >>> |
37 |
> >>>./etc |
38 |
> >>>./etc/init.d |
39 |
> >>>./etc/init.d/somescript |
40 |
> >> |
41 |
> >>The whole gentoo.igz is just the kernel ramdisk, that is discarded after |
42 |
> >>the filesystem from the CD is mounted. Your other modified files can go |
43 |
> >>into that directory, too. They are copied over stage2 before it gets |
44 |
> >>compressed. |
45 |
> >> |
46 |
> >>Greetings, |
47 |
> >> |
48 |
> >>Georg |
49 |
> >> |
50 |
> >>Eliot Gable wrote: |
51 |
> >> |
52 |
> >>>I am new to the whole "live cd" thing, so please bear with me here. |
53 |
> >>> |
54 |
> >>>I am trying to add a file to the /etc/init.d/ directory that exists |
55 |
> >> |
56 |
> >>*after* |
57 |
> >> |
58 |
> >>>the entire Gentoo live cd boots up. I have figured out that the |
59 |
> >> |
60 |
> >>/etc/init.d |
61 |
> >> |
62 |
> >>>directory in the ISO image on the CD is a base environment of some |
63 |
> >> |
64 |
> >>sorts, |
65 |
> >> |
66 |
> >>>and that the gentoo.igz file in the isolinux directory on the CD |
67 |
> >> |
68 |
> >>contains |
69 |
> >> |
70 |
> >>>the real set of files that exist in the /etc/init.d directory once the |
71 |
> >>>entire CD finishes booting. I have created a folder to hold my overlay |
72 |
> >>>files. This folder looks like so: |
73 |
> >>> |
74 |
> >>> |
75 |
> >>>Now, I try to create an overlay like so: |
76 |
> >>> |
77 |
> >>>find . -print | cpio --quiet -o -H newc | gzip -9 > ../gentoo.igz.new |
78 |
> >>>cd .. |
79 |
> >>>cat gentoo.igz.old gentoo.igz.new > gentoo.igz |
80 |
> >>>cp gentoo.igz newcd/isolinux/ |
81 |
> >>>cd newcd |
82 |
> >>>mkisofs -o ../gentoo.iso -b isolinux/isolinux.bin -c isolinux/boot.cat |
83 |
> >>>-no-emul-boot -boot-load-size 4 -iso-level 2 -boot-info-table . |
84 |
> >>>cdrecord -blank=fast dev=/dev/hdc ../gentoo.iso |
85 |
> >>> |
86 |
> >>>The thing is, the resultant CD will boot just fine. However, the file |
87 |
> >> |
88 |
> >>does |
89 |
> >> |
90 |
> >>>not show up in the /etc/init.d/ directory after the CD finishes booting |
91 |
-- |
92 |
Chris Gianelloni |
93 |
Release Engineering - Strategic Lead/QA Manager |
94 |
Games - Developer |
95 |
Gentoo Linux |