* [gentoo-dev] Livecds
@ 2002-12-01 22:47 Jeff Jeter
2002-12-02 2:30 ` daveman
2002-12-02 4:44 ` Daniel Robbins
0 siblings, 2 replies; 11+ messages in thread
From: Jeff Jeter @ 2002-12-01 22:47 UTC (permalink / raw
To: gentoo-dev
I know this isn't a developer question, but it is important to my installer and i haven't been able to find help elsewhere.
I am trying to create a custom livecd. I can find no documentation on how the livecds work nor how to make one. Are they simple el torrito bootable cds or more complex? Can someone either post instructions on how to make a custom livecd or a link to documentation that would point me in he right direction.
I do have the livecd package installed, but the man page makes no sense.
Thanks,
Jeff
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-dev] Livecds
2002-12-01 22:47 [gentoo-dev] Livecds Jeff Jeter
@ 2002-12-02 2:30 ` daveman
2002-12-02 9:30 ` Toby Dickenson
2002-12-02 4:44 ` Daniel Robbins
1 sibling, 1 reply; 11+ messages in thread
From: daveman @ 2002-12-02 2:30 UTC (permalink / raw
To: Jeff Jeter; +Cc: gentoo-dev
On Sun, Dec 01, 2002 at 05:47:41PM -0500, Jeff Jeter wrote:
> I know this isn't a developer question, but it is important to my installer and i haven't been able to find help elsewhere.
>
> I am trying to create a custom livecd. I can find no documentation on how the livecds work nor how to make one. Are they simple el torrito bootable cds or more complex? Can someone either post instructions on how to make a custom livecd or a link to documentation that would point me in he right direction.
>
> I do have the livecd package installed, but the man page makes no sense.
>
> Thanks,
> Jeff
This sounds interesting, I figure I'll give a stab at how I might begin to
approach such a thing ;-)
* Make yourself a loopback filesystem of about 640MB in size and mount.
* Mount /var and /tmp and /proc from regular filesystem into your new
filesystem and chroot.
* Do your regular gentoo install. When your done, perhaps clean out the
/usr/portage area? Unmount.
* Make an el torito CD.(not entirely sure how to do this part)
* Copy over filesystem image to the CD.
* I'm thinking you'll probably need a RAMDISK for temporary file storage and
whatnot.
Sounds like it would be a fun project. If someone has already done such a
document it would be very interesting to see. If not, it might be fun to write.
;-)
Let me know.
--David
--
|\_/|
(\ /)
) (//^\
( M )
(_)_(_)
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-dev] Livecds
2002-12-01 22:47 [gentoo-dev] Livecds Jeff Jeter
2002-12-02 2:30 ` daveman
@ 2002-12-02 4:44 ` Daniel Robbins
1 sibling, 0 replies; 11+ messages in thread
From: Daniel Robbins @ 2002-12-02 4:44 UTC (permalink / raw
To: Jeff Jeter; +Cc: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 988 bytes --]
On Sun, 2002-12-01 at 15:47, Jeff Jeter wrote:
> I know this isn't a developer question, but it is important to my installer and i haven't been able to find help elsewhere.
>
> I am trying to create a custom livecd. I can find no documentation on how the livecds work nor how to make one. Are they simple el torrito bootable cds or more complex? Can someone either post instructions on how to make a custom livecd or a link to documentation that would point me in he right direction.
>
> I do have the livecd package installed, but the man page makes no sense.
The "livecd" ebuild is not actually the Gentoo Linux livecd script; I'll
remove the ebuild so that others don't get confused -- you're not the
only one. I'm currently developing the next version of the livecd and
hope to have an ebuild available for it around the beginning of Jan
2003. Right now it's on CVS only.
Best Regards,
--
Daniel Robbins
Chief Architect, Gentoo Linux
http://www.gentoo.org
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-dev] Livecds
2002-12-02 2:30 ` daveman
@ 2002-12-02 9:30 ` Toby Dickenson
2002-12-03 3:48 ` Jeff Jeter
0 siblings, 1 reply; 11+ messages in thread
From: Toby Dickenson @ 2002-12-02 9:30 UTC (permalink / raw
To: daveman, Jeff Jeter; +Cc: gentoo-dev
On Monday 02 December 2002 2:30 am, daveman@bellatlantic.net wrote:
> This sounds interesting, I figure I'll give a stab at how I might begin to
> approach such a thing ;-)
>
> * Make yourself a loopback filesystem of about 640MB in size and mount.
No need for a loopback filesystem. Just chroot into an ordinary directory.
> * Mount /var and /tmp and /proc from regular filesystem into your new
> filesystem and chroot.
>
> * Do your regular gentoo install. When your done, perhaps clean out the
> /usr/portage area? Unmount.
Or mount your /usr/portage from the outer filesystem like you describe above
for /proc. I do the same for /usr/src too, since I dont want kernel sources
on my livecd
* build isolinux. The origin site has a later version than in portage
* copy the initrd image from the original livecd. (no need to modify it)
* look at the isolinux config file from the original livecd. you might want to
tweak it
* grep for CDBOOT in the original livecd /etc directory. There are a few
baselayout files that have been tweaked from the original portage versions.
In this bugzilla entry I suggested it would be nice to standardise this:
http://bugs.gentoo.org/show_bug.cgi?id=11330
> * Make an el torito CD.(not entirely sure how to do this part)
My build script uses the command:
mkisofs -x "/rescuedisk/image/usr/share/doc" -x
"/rescuedisk/image/usr/share/man" -o disk.iso -J -r -nobak -b
isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4
-boot-info-table /rescuedisk/image
> * Copy over filesystem image to the CD.
>
> * I'm thinking you'll probably need a RAMDISK for temporary file storage
> and whatnot.
The original livecd initrd takes care of all that nicely.
> Sounds like it would be a fun project. If someone has already done such a
> document it would be very interesting to see. If not, it might be fun to
> write. ;-)
its on my todo list
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-dev] Livecds
2002-12-02 9:30 ` Toby Dickenson
@ 2002-12-03 3:48 ` Jeff Jeter
2002-12-03 12:42 ` Paul de Vrieze
0 siblings, 1 reply; 11+ messages in thread
From: Jeff Jeter @ 2002-12-03 3:48 UTC (permalink / raw
To: gentoo-dev
GOT IT WORKING!!! thanks, a lot.
Now for a more specific question. I'm burning tis livecd to test my installer. I would like to get samba installed (so i can easily update the installer w/out having to make a new cd), on a basic install livecd. What is the best way to do this? Is ther a way to make portage emerge to the dir i'm gonna make the image from?
For the curious: I dcided to take my instlaller project simpler, so i just wote it as an interactive test-mode installer, but it delays all builds tillt he end so an install can be done in batch. Soon it will be able to generate an install script for automatic installs. I'll post more details along w/ code, etc. once i make sure it works.
On Mon, 2 Dec 2002 09:30:58 +0000
Toby Dickenson <tdickenson@devmail.geminidataloggers.co.uk> wrote:
> On Monday 02 December 2002 2:30 am, daveman@bellatlantic.net wrote:
>
> > This sounds interesting, I figure I'll give a stab at how I might begin to
> > approach such a thing ;-)
> >
> > * Make yourself a loopback filesystem of about 640MB in size and mount.
>
> No need for a loopback filesystem. Just chroot into an ordinary directory.
>
> > * Mount /var and /tmp and /proc from regular filesystem into your new
> > filesystem and chroot.
> >
> > * Do your regular gentoo install. When your done, perhaps clean out the
> > /usr/portage area? Unmount.
>
> Or mount your /usr/portage from the outer filesystem like you describe above
> for /proc. I do the same for /usr/src too, since I dont want kernel sources
> on my livecd
>
> * build isolinux. The origin site has a later version than in portage
>
> * copy the initrd image from the original livecd. (no need to modify it)
>
> * look at the isolinux config file from the original livecd. you might want to
> tweak it
>
> * grep for CDBOOT in the original livecd /etc directory. There are a few
> baselayout files that have been tweaked from the original portage versions.
> In this bugzilla entry I suggested it would be nice to standardise this:
> http://bugs.gentoo.org/show_bug.cgi?id=11330
>
> > * Make an el torito CD.(not entirely sure how to do this part)
>
> My build script uses the command:
>
> mkisofs -x "/rescuedisk/image/usr/share/doc" -x
> "/rescuedisk/image/usr/share/man" -o disk.iso -J -r -nobak -b
> isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4
> -boot-info-table /rescuedisk/image
>
> > * Copy over filesystem image to the CD.
> >
> > * I'm thinking you'll probably need a RAMDISK for temporary file storage
> > and whatnot.
>
> The original livecd initrd takes care of all that nicely.
>
> > Sounds like it would be a fun project. If someone has already done such a
> > document it would be very interesting to see. If not, it might be fun to
> > write. ;-)
>
> its on my todo list
>
>
>
> --
> gentoo-dev@gentoo.org mailing list
>
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-dev] Livecds
2002-12-03 3:48 ` Jeff Jeter
@ 2002-12-03 12:42 ` Paul de Vrieze
2002-12-03 23:18 ` Jeff Jeter
0 siblings, 1 reply; 11+ messages in thread
From: Paul de Vrieze @ 2002-12-03 12:42 UTC (permalink / raw
To: gentoo-dev
On Tuesday 03 December 2002 04:48, Jeff Jeter wrote:
> GOT IT WORKING!!! thanks, a lot.
>
> Now for a more specific question. I'm burning tis livecd to test my
> installer. I would like to get samba installed (so i can easily update the
> installer w/out having to make a new cd), on a basic install livecd. What
> is the best way to do this? Is ther a way to make portage emerge to the
> dir i'm gonna make the image from?
>
Take a look at <man make.conf>
And specifically the ROOT variable, this should allow portage to work to
another dir. Note that this only works when library versions on the livecd
image are the same as on the host system, else a chroot should work better.
Paul
--
Paul de Vrieze
Junior Researcher
Mail: pauldv@cs.kun.nl
Homepage: http://www.cs.kun.nl/~pauldv
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-dev] Livecds
2002-12-03 12:42 ` Paul de Vrieze
@ 2002-12-03 23:18 ` Jeff Jeter
2002-12-03 23:25 ` Martin Cooper
2002-12-04 8:35 ` Paul de Vrieze
0 siblings, 2 replies; 11+ messages in thread
From: Jeff Jeter @ 2002-12-03 23:18 UTC (permalink / raw
To: gentoo-dev
Ok, i set ROOT to the image dir. However emerge -p samba needs basicall the entire system package. This doesn't look like the best. Is ther a way to find what specific libs samba needs and copy those over. I can chroot and go through every needed lib until smbd starts, but i was wondering if ther's a more eficiant way.
On Tue, 3 Dec 2002 13:42:32 +0100
Paul de Vrieze <gentoo-user@devrieze.net> wrote:
> On Tuesday 03 December 2002 04:48, Jeff Jeter wrote:
> > GOT IT WORKING!!! thanks, a lot.
> >
> > Now for a more specific question. I'm burning tis livecd to test my
> > installer. I would like to get samba installed (so i can easily update the
> > installer w/out having to make a new cd), on a basic install livecd. What
> > is the best way to do this? Is ther a way to make portage emerge to the
> > dir i'm gonna make the image from?
> >
>
> Take a look at <man make.conf>
> And specifically the ROOT variable, this should allow portage to work to
> another dir. Note that this only works when library versions on the livecd
> image are the same as on the host system, else a chroot should work better.
>
> Paul
>
> --
> Paul de Vrieze
> Junior Researcher
> Mail: pauldv@cs.kun.nl
> Homepage: http://www.cs.kun.nl/~pauldv
>
>
> --
> gentoo-dev@gentoo.org mailing list
>
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-dev] Livecds
2002-12-03 23:18 ` Jeff Jeter
@ 2002-12-03 23:25 ` Martin Cooper
2002-12-04 0:41 ` Jeff Jeter
2002-12-04 8:35 ` Paul de Vrieze
1 sibling, 1 reply; 11+ messages in thread
From: Martin Cooper @ 2002-12-03 23:25 UTC (permalink / raw
To: gentoo-dev
----- Original Message -----
From: "Jeff Jeter" <gsfgf@softhome.net>
To: <gentoo-dev@gentoo.org>
Sent: Tuesday, December 03, 2002 11:18 PM
Subject: Re: [gentoo-dev] Livecds
> Ok, i set ROOT to the image dir. However emerge -p samba needs basicall
the entire system package. This doesn't look like the best. Is ther a way
to find what specific libs samba needs and copy those over. I can chroot
and go through every needed lib until smbd starts, but i was wondering if
ther's a more eficiant way.
Howabout using ldd ? So for example, ldd on smbd and nmbd gives :-
root:sbin # ldd smbd
libssl.so.0.9.6 => /usr/lib/libssl.so.0.9.6 (0x4001c000)
libcrypto.so.0.9.6 => /usr/lib/libcrypto.so.0.9.6 (0x4004b000)
libcups.so.2 => /usr/lib/libcups.so.2 (0x40115000)
libnsl.so.1 => /lib/libnsl.so.1 (0x40130000)
libpam.so.0 => /lib/libpam.so.0 (0x40145000)
libc.so.6 => /lib/libc.so.6 (0x4014d000)
libdl.so.2 => /lib/libdl.so.2 (0x4026b000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
root:sbin # ldd nmbd
libssl.so.0.9.6 => /usr/lib/libssl.so.0.9.6 (0x4001c000)
libcrypto.so.0.9.6 => /usr/lib/libcrypto.so.0.9.6 (0x4004b000)
libcups.so.2 => /usr/lib/libcups.so.2 (0x40115000)
libnsl.so.1 => /lib/libnsl.so.1 (0x40130000)
libpam.so.0 => /lib/libpam.so.0 (0x40145000)
libc.so.6 => /lib/libc.so.6 (0x4014d000)
libdl.so.2 => /lib/libdl.so.2 (0x4026b000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
These are the libraries used by samba on my system
Martin
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-dev] Livecds
2002-12-03 23:25 ` Martin Cooper
@ 2002-12-04 0:41 ` Jeff Jeter
2002-12-04 7:52 ` Martin Cooper
0 siblings, 1 reply; 11+ messages in thread
From: Jeff Jeter @ 2002-12-04 0:41 UTC (permalink / raw
To: gentoo-dev
I manually copied the necessary deps since merge samba w/ ROOT pointing to the livecd dir needed almoast the entire system package as deps. Too much, imo.
I copied the required files (only 2) and burned the cd.
# pci-setup
# net-setup eth0
# smbd -D; nmbd -D
no samba. no errors, but no shares accessable to the outside world, and no smbd or nmbd listed w/ ps -aux.
Tips?
On Tue, 3 Dec 2002 23:25:15 -0000
"Martin Cooper" <mac@macooper.com> wrote:
>
> ----- Original Message -----
> From: "Jeff Jeter" <gsfgf@softhome.net>
> To: <gentoo-dev@gentoo.org>
> Sent: Tuesday, December 03, 2002 11:18 PM
> Subject: Re: [gentoo-dev] Livecds
>
>
> > Ok, i set ROOT to the image dir. However emerge -p samba needs basicall
> the entire system package. This doesn't look like the best. Is ther a way
> to find what specific libs samba needs and copy those over. I can chroot
> and go through every needed lib until smbd starts, but i was wondering if
> ther's a more eficiant way.
>
> Howabout using ldd ? So for example, ldd on smbd and nmbd gives :-
>
> root:sbin # ldd smbd
> libssl.so.0.9.6 => /usr/lib/libssl.so.0.9.6 (0x4001c000)
> libcrypto.so.0.9.6 => /usr/lib/libcrypto.so.0.9.6 (0x4004b000)
> libcups.so.2 => /usr/lib/libcups.so.2 (0x40115000)
> libnsl.so.1 => /lib/libnsl.so.1 (0x40130000)
> libpam.so.0 => /lib/libpam.so.0 (0x40145000)
> libc.so.6 => /lib/libc.so.6 (0x4014d000)
> libdl.so.2 => /lib/libdl.so.2 (0x4026b000)
> /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
> root:sbin # ldd nmbd
> libssl.so.0.9.6 => /usr/lib/libssl.so.0.9.6 (0x4001c000)
> libcrypto.so.0.9.6 => /usr/lib/libcrypto.so.0.9.6 (0x4004b000)
> libcups.so.2 => /usr/lib/libcups.so.2 (0x40115000)
> libnsl.so.1 => /lib/libnsl.so.1 (0x40130000)
> libpam.so.0 => /lib/libpam.so.0 (0x40145000)
> libc.so.6 => /lib/libc.so.6 (0x4014d000)
> libdl.so.2 => /lib/libdl.so.2 (0x4026b000)
> /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
>
> These are the libraries used by samba on my system
>
> Martin
>
>
>
> --
> gentoo-dev@gentoo.org mailing list
>
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-dev] Livecds
2002-12-04 0:41 ` Jeff Jeter
@ 2002-12-04 7:52 ` Martin Cooper
0 siblings, 0 replies; 11+ messages in thread
From: Martin Cooper @ 2002-12-04 7:52 UTC (permalink / raw
To: gentoo-dev
----- Original Message -----
From: "Jeff Jeter" <gsfgf@softhome.net>
To: <gentoo-dev@gentoo.org>
Sent: Wednesday, December 04, 2002 12:41 AM
Subject: Re: [gentoo-dev] Livecds
> I manually copied the necessary deps since merge samba w/ ROOT pointing to
the livecd dir needed almoast the entire system package as deps. Too much,
imo.
> I copied the required files (only 2) and burned the cd.
>
> # pci-setup
> # net-setup eth0
> # smbd -D; nmbd -D
> no samba. no errors, but no shares accessable to the outside world, and
no smbd or nmbd listed w/ ps -aux.
>
> Tips?
>
The only thing I can suggest is to ensure that the /etc/passwd file and
/etc/group file is accessable, other than that, you will need to run the
programs individually and check the log files. I would try this for smbd :-
smbd -i -d 10 -l . &
This will cause smbd to run in the forground (so you can tell eisier when it
exits), print maximum debug output to the log file, and create the file
log.smbd in the current directory. Use the same options for nmbd, and check
the file log.nmbd afterwards. These logs are usually pretty good with
samba, and should give you an idea of the problem.
Martin
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-dev] Livecds
2002-12-03 23:18 ` Jeff Jeter
2002-12-03 23:25 ` Martin Cooper
@ 2002-12-04 8:35 ` Paul de Vrieze
1 sibling, 0 replies; 11+ messages in thread
From: Paul de Vrieze @ 2002-12-04 8:35 UTC (permalink / raw
To: gentoo-dev
On Wednesday 04 December 2002 00:18, Jeff Jeter wrote:
> Ok, i set ROOT to the image dir. However emerge -p samba needs basicall
> the entire system package. This doesn't look like the best. Is ther a way
> to find what specific libs samba needs and copy those over. I can chroot
> and go through every needed lib until smbd starts, but i was wondering if
> ther's a more eficiant way.
>
In this case just install the binary package with the ROOT flag (make sure it
is a package with minimal USE flags, you probably don't want cups for
example), and run an ldd on your binaries. That should tell you which
libraries you need. This is very use flag dependant.
Paul
--
Paul de Vrieze
Junior Researcher
Mail: pauldv@cs.kun.nl
Homepage: http://www.cs.kun.nl/~pauldv
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2002-12-04 8:36 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-01 22:47 [gentoo-dev] Livecds Jeff Jeter
2002-12-02 2:30 ` daveman
2002-12-02 9:30 ` Toby Dickenson
2002-12-03 3:48 ` Jeff Jeter
2002-12-03 12:42 ` Paul de Vrieze
2002-12-03 23:18 ` Jeff Jeter
2002-12-03 23:25 ` Martin Cooper
2002-12-04 0:41 ` Jeff Jeter
2002-12-04 7:52 ` Martin Cooper
2002-12-04 8:35 ` Paul de Vrieze
2002-12-02 4:44 ` Daniel Robbins
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox