* [gentoo-catalyst] Initrd overlay for gentoo.igz
@ 2005-09-26 20:35 Eliot Gable
2005-09-27 6:30 ` Georg Lippold
0 siblings, 1 reply; 6+ messages in thread
From: Eliot Gable @ 2005-09-26 20:35 UTC (permalink / raw
To: gentoo-catalyst
[-- Attachment #1: Type: text/plain, Size: 1463 bytes --]
I am new to the whole "live cd" thing, so please bear with me here.
I am trying to add a file to the /etc/init.d/ directory that exists *after*
the entire Gentoo live cd boots up. I have figured out that the /etc/init.d
directory in the ISO image on the CD is a base environment of some sorts,
and that the gentoo.igz file in the isolinux directory on the CD contains
the real set of files that exist in the /etc/init.d directory once the
entire CD finishes booting. I have created a folder to hold my overlay
files. This folder looks like so:
find . -print
./etc
./etc/init.d
./etc/init.d/somescript
Now, I try to create an overlay like so:
find . -print | cpio --quiet -o -H newc | gzip -9 > ../gentoo.igz.new
cd ..
cat gentoo.igz.old gentoo.igz.new > gentoo.igz
cp gentoo.igz newcd/isolinux/
cd newcd
mkisofs -o ../gentoo.iso -b isolinux/isolinux.bin -c isolinux/boot.cat
-no-emul-boot -boot-load-size 4 -iso-level 2 -boot-info-table .
cdrecord -blank=fast dev=/dev/hdc ../gentoo.iso
The thing is, the resultant CD will boot just fine. However, the file does
not show up in the /etc/init.d/ directory after the CD finishes booting. I'm
trying to do this without having to build an entirely new live cd using the
catalyst utilities. All I want to do is add a single file (maybe two) to the
/etc/init.d directory, and maybe modify one of the existing files.
Any help on this would be greatly appreciated.
-Eliot Gable
[-- Attachment #2: Type: text/html, Size: 1587 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-catalyst] Initrd overlay for gentoo.igz
2005-09-26 20:35 [gentoo-catalyst] Initrd overlay for gentoo.igz Eliot Gable
@ 2005-09-27 6:30 ` Georg Lippold
2005-09-27 14:16 ` Eliot Gable
0 siblings, 1 reply; 6+ messages in thread
From: Georg Lippold @ 2005-09-27 6:30 UTC (permalink / raw
To: gentoo-catalyst
Hi Eliot,
just use
livecd/root_overlay: /path
in your livecd-stage2.spec
In /path, there is this structure
> find . -print
>
> ./etc
> ./etc/init.d
> ./etc/init.d/somescript
The whole gentoo.igz is just the kernel ramdisk, that is discarded after
the filesystem from the CD is mounted. Your other modified files can go
into that directory, too. They are copied over stage2 before it gets
compressed.
Greetings,
Georg
Eliot Gable wrote:
> I am new to the whole "live cd" thing, so please bear with me here.
>
> I am trying to add a file to the /etc/init.d/ directory that exists *after*
> the entire Gentoo live cd boots up. I have figured out that the /etc/init.d
> directory in the ISO image on the CD is a base environment of some sorts,
> and that the gentoo.igz file in the isolinux directory on the CD contains
> the real set of files that exist in the /etc/init.d directory once the
> entire CD finishes booting. I have created a folder to hold my overlay
> files. This folder looks like so:
>
>
> Now, I try to create an overlay like so:
>
> find . -print | cpio --quiet -o -H newc | gzip -9 > ../gentoo.igz.new
> cd ..
> cat gentoo.igz.old gentoo.igz.new > gentoo.igz
> cp gentoo.igz newcd/isolinux/
> cd newcd
> mkisofs -o ../gentoo.iso -b isolinux/isolinux.bin -c isolinux/boot.cat
> -no-emul-boot -boot-load-size 4 -iso-level 2 -boot-info-table .
> cdrecord -blank=fast dev=/dev/hdc ../gentoo.iso
>
> The thing is, the resultant CD will boot just fine. However, the file does
> not show up in the /etc/init.d/ directory after the CD finishes booting. I'm
> trying to do this without having to build an entirely new live cd using the
> catalyst utilities. All I want to do is add a single file (maybe two) to the
> /etc/init.d directory, and maybe modify one of the existing files.
>
> Any help on this would be greatly appreciated.
>
> -Eliot Gable
>
--
gentoo-catalyst@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-catalyst] Initrd overlay for gentoo.igz
2005-09-27 6:30 ` Georg Lippold
@ 2005-09-27 14:16 ` Eliot Gable
2005-09-27 14:19 ` Andrew Gaffney
2005-09-28 8:43 ` Georg Lippold
0 siblings, 2 replies; 6+ messages in thread
From: Eliot Gable @ 2005-09-27 14:16 UTC (permalink / raw
To: gentoo-catalyst
[-- Attachment #1: Type: text/plain, Size: 2770 bytes --]
Well, I assume you are talking about the catalyst build? I am trying to stay
away from the catalyst utilities. I do not want to build a whole new livecd
image. I just want to use the x86 minimal livecd image I downloaded. I do
not see any livecd-stage2.spec file on that CD. I am not at all familiar
with catalyst and I was not planning on spending the time learning it. I
thought this would be a relatively simple task -- just unpacking the files
on the CD, adding a couple in, and repackaging them. Can I not do it this
way?
On 9/27/05, Georg Lippold <georg.lippold@gmx.de> wrote:
>
> Hi Eliot,
>
> just use
>
> livecd/root_overlay: /path
>
> in your livecd-stage2.spec
>
> In /path, there is this structure
>
> > find . -print
> >
> > ./etc
> > ./etc/init.d
> > ./etc/init.d/somescript
>
> The whole gentoo.igz is just the kernel ramdisk, that is discarded after
> the filesystem from the CD is mounted. Your other modified files can go
> into that directory, too. They are copied over stage2 before it gets
> compressed.
>
> Greetings,
>
> Georg
>
> Eliot Gable wrote:
> > I am new to the whole "live cd" thing, so please bear with me here.
> >
> > I am trying to add a file to the /etc/init.d/ directory that exists
> *after*
> > the entire Gentoo live cd boots up. I have figured out that the
> /etc/init.d
> > directory in the ISO image on the CD is a base environment of some
> sorts,
> > and that the gentoo.igz file in the isolinux directory on the CD
> contains
> > the real set of files that exist in the /etc/init.d directory once the
> > entire CD finishes booting. I have created a folder to hold my overlay
> > files. This folder looks like so:
> >
> >
> > Now, I try to create an overlay like so:
> >
> > find . -print | cpio --quiet -o -H newc | gzip -9 > ../gentoo.igz.new
> > cd ..
> > cat gentoo.igz.old gentoo.igz.new > gentoo.igz
> > cp gentoo.igz newcd/isolinux/
> > cd newcd
> > mkisofs -o ../gentoo.iso -b isolinux/isolinux.bin -c isolinux/boot.cat
> > -no-emul-boot -boot-load-size 4 -iso-level 2 -boot-info-table .
> > cdrecord -blank=fast dev=/dev/hdc ../gentoo.iso
> >
> > The thing is, the resultant CD will boot just fine. However, the file
> does
> > not show up in the /etc/init.d/ directory after the CD finishes booting.
> I'm
> > trying to do this without having to build an entirely new live cd using
> the
> > catalyst utilities. All I want to do is add a single file (maybe two) to
> the
> > /etc/init.d directory, and maybe modify one of the existing files.
> >
> > Any help on this would be greatly appreciated.
> >
> > -Eliot Gable
> >
> --
> gentoo-catalyst@gentoo.org mailing list
>
>
--
Eliot Gable
CCNA, CWNA, Security+, Network+
[-- Attachment #2: Type: text/html, Size: 3249 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-catalyst] Initrd overlay for gentoo.igz
2005-09-27 14:16 ` Eliot Gable
@ 2005-09-27 14:19 ` Andrew Gaffney
2005-09-28 8:43 ` Georg Lippold
1 sibling, 0 replies; 6+ messages in thread
From: Andrew Gaffney @ 2005-09-27 14:19 UTC (permalink / raw
To: gentoo-catalyst
Eliot Gable wrote:
> Well, I assume you are talking about the catalyst build? I am trying to
> stay away from the catalyst utilities. I do not want to build a whole
> new livecd image. I just want to use the x86 minimal livecd image I
> downloaded. I do not see any livecd-stage2.spec file on that CD. I am
> not at all familiar with catalyst and I was not planning on spending the
> time learning it. I thought this would be a relatively simple task --
> just unpacking the files on the CD, adding a couple in, and repackaging
> them. Can I not do it this way?
No, not really.
--
Andrew Gaffney http://dev.gentoo.org/~agaffney/
Gentoo Linux Developer Installer Project
--
gentoo-catalyst@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-catalyst] Initrd overlay for gentoo.igz
2005-09-27 14:16 ` Eliot Gable
2005-09-27 14:19 ` Andrew Gaffney
@ 2005-09-28 8:43 ` Georg Lippold
2005-09-28 15:37 ` Chris Gianelloni
1 sibling, 1 reply; 6+ messages in thread
From: Georg Lippold @ 2005-09-28 8:43 UTC (permalink / raw
To: gentoo-catalyst
Hi Eliot,
there are serveral Knoppix remaster (google:"knoppix remaster") Howto's
out there, you may have a look at them, but I cannot guarantee for it.
One difference: LiveCD's usually use squashfs while Knoppix uses cloop.
Greetings,
Georg
Eliot Gable wrote:
> Well, I assume you are talking about the catalyst build? I am trying to stay
> away from the catalyst utilities. I do not want to build a whole new livecd
> image. I just want to use the x86 minimal livecd image I downloaded. I do
> not see any livecd-stage2.spec file on that CD. I am not at all familiar
> with catalyst and I was not planning on spending the time learning it. I
> thought this would be a relatively simple task -- just unpacking the files
> on the CD, adding a couple in, and repackaging them. Can I not do it this
> way?
>
> On 9/27/05, Georg Lippold <georg.lippold@gmx.de> wrote:
>
>>Hi Eliot,
>>
>>just use
>>
>>livecd/root_overlay: /path
>>
>>in your livecd-stage2.spec
>>
>>In /path, there is this structure
>>
>>
>>>find . -print
>>>
>>>./etc
>>>./etc/init.d
>>>./etc/init.d/somescript
>>
>>The whole gentoo.igz is just the kernel ramdisk, that is discarded after
>>the filesystem from the CD is mounted. Your other modified files can go
>>into that directory, too. They are copied over stage2 before it gets
>>compressed.
>>
>>Greetings,
>>
>>Georg
>>
>>Eliot Gable wrote:
>>
>>>I am new to the whole "live cd" thing, so please bear with me here.
>>>
>>>I am trying to add a file to the /etc/init.d/ directory that exists
>>
>>*after*
>>
>>>the entire Gentoo live cd boots up. I have figured out that the
>>
>>/etc/init.d
>>
>>>directory in the ISO image on the CD is a base environment of some
>>
>>sorts,
>>
>>>and that the gentoo.igz file in the isolinux directory on the CD
>>
>>contains
>>
>>>the real set of files that exist in the /etc/init.d directory once the
>>>entire CD finishes booting. I have created a folder to hold my overlay
>>>files. This folder looks like so:
>>>
>>>
>>>Now, I try to create an overlay like so:
>>>
>>>find . -print | cpio --quiet -o -H newc | gzip -9 > ../gentoo.igz.new
>>>cd ..
>>>cat gentoo.igz.old gentoo.igz.new > gentoo.igz
>>>cp gentoo.igz newcd/isolinux/
>>>cd newcd
>>>mkisofs -o ../gentoo.iso -b isolinux/isolinux.bin -c isolinux/boot.cat
>>>-no-emul-boot -boot-load-size 4 -iso-level 2 -boot-info-table .
>>>cdrecord -blank=fast dev=/dev/hdc ../gentoo.iso
>>>
>>>The thing is, the resultant CD will boot just fine. However, the file
>>
>>does
>>
>>>not show up in the /etc/init.d/ directory after the CD finishes booting
--
gentoo-catalyst@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-catalyst] Initrd overlay for gentoo.igz
2005-09-28 8:43 ` Georg Lippold
@ 2005-09-28 15:37 ` Chris Gianelloni
0 siblings, 0 replies; 6+ messages in thread
From: Chris Gianelloni @ 2005-09-28 15:37 UTC (permalink / raw
To: gentoo-catalyst
[-- Attachment #1: Type: text/plain, Size: 3171 bytes --]
On Wed, 2005-09-28 at 10:43 +0200, Georg Lippold wrote:
> Hi Eliot,
>
> there are serveral Knoppix remaster (google:"knoppix remaster") Howto's
> out there, you may have a look at them, but I cannot guarantee for it.
> One difference: LiveCD's usually use squashfs while Knoppix uses cloop.
Right. Any init script that you dump into the initramfs image will
*only* be in the initramfs image and not on the live filesystem. You
need to modify the squashfs image to get it into the filesystem.
> Eliot Gable wrote:
> > Well, I assume you are talking about the catalyst build? I am trying to stay
> > away from the catalyst utilities. I do not want to build a whole new livecd
> > image. I just want to use the x86 minimal livecd image I downloaded. I do
> > not see any livecd-stage2.spec file on that CD. I am not at all familiar
> > with catalyst and I was not planning on spending the time learning it. I
> > thought this would be a relatively simple task -- just unpacking the files
> > on the CD, adding a couple in, and repackaging them. Can I not do it this
> > way?
> >
> > On 9/27/05, Georg Lippold <georg.lippold@gmx.de> wrote:
> >
> >>Hi Eliot,
> >>
> >>just use
> >>
> >>livecd/root_overlay: /path
> >>
> >>in your livecd-stage2.spec
> >>
> >>In /path, there is this structure
> >>
> >>
> >>>find . -print
> >>>
> >>>./etc
> >>>./etc/init.d
> >>>./etc/init.d/somescript
> >>
> >>The whole gentoo.igz is just the kernel ramdisk, that is discarded after
> >>the filesystem from the CD is mounted. Your other modified files can go
> >>into that directory, too. They are copied over stage2 before it gets
> >>compressed.
> >>
> >>Greetings,
> >>
> >>Georg
> >>
> >>Eliot Gable wrote:
> >>
> >>>I am new to the whole "live cd" thing, so please bear with me here.
> >>>
> >>>I am trying to add a file to the /etc/init.d/ directory that exists
> >>
> >>*after*
> >>
> >>>the entire Gentoo live cd boots up. I have figured out that the
> >>
> >>/etc/init.d
> >>
> >>>directory in the ISO image on the CD is a base environment of some
> >>
> >>sorts,
> >>
> >>>and that the gentoo.igz file in the isolinux directory on the CD
> >>
> >>contains
> >>
> >>>the real set of files that exist in the /etc/init.d directory once the
> >>>entire CD finishes booting. I have created a folder to hold my overlay
> >>>files. This folder looks like so:
> >>>
> >>>
> >>>Now, I try to create an overlay like so:
> >>>
> >>>find . -print | cpio --quiet -o -H newc | gzip -9 > ../gentoo.igz.new
> >>>cd ..
> >>>cat gentoo.igz.old gentoo.igz.new > gentoo.igz
> >>>cp gentoo.igz newcd/isolinux/
> >>>cd newcd
> >>>mkisofs -o ../gentoo.iso -b isolinux/isolinux.bin -c isolinux/boot.cat
> >>>-no-emul-boot -boot-load-size 4 -iso-level 2 -boot-info-table .
> >>>cdrecord -blank=fast dev=/dev/hdc ../gentoo.iso
> >>>
> >>>The thing is, the resultant CD will boot just fine. However, the file
> >>
> >>does
> >>
> >>>not show up in the /etc/init.d/ directory after the CD finishes booting
--
Chris Gianelloni
Release Engineering - Strategic Lead/QA Manager
Games - Developer
Gentoo Linux
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-09-28 15:40 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-26 20:35 [gentoo-catalyst] Initrd overlay for gentoo.igz Eliot Gable
2005-09-27 6:30 ` Georg Lippold
2005-09-27 14:16 ` Eliot Gable
2005-09-27 14:19 ` Andrew Gaffney
2005-09-28 8:43 ` Georg Lippold
2005-09-28 15:37 ` Chris Gianelloni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox