Gentoo Archives: gentoo-dev

From: Jeff Jeter <gsfgf@××××××××.net>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] Livecds
Date: Tue, 03 Dec 2002 03:42:59
Message-Id: 20021202224813.00959cb4.gsfgf@softhome.net
In Reply to: Re: [gentoo-dev] Livecds by Toby Dickenson
1 GOT IT WORKING!!! thanks, a lot.
2
3 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?
4
5 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.
6
7 On Mon, 2 Dec 2002 09:30:58 +0000
8 Toby Dickenson <tdickenson@××××××××××××××××××××××××××××.uk> wrote:
9
10 > On Monday 02 December 2002 2:30 am, daveman@××××××××××××.net wrote:
11 >
12 > > This sounds interesting, I figure I'll give a stab at how I might begin to
13 > > approach such a thing ;-)
14 > >
15 > > * Make yourself a loopback filesystem of about 640MB in size and mount.
16 >
17 > No need for a loopback filesystem. Just chroot into an ordinary directory.
18 >
19 > > * Mount /var and /tmp and /proc from regular filesystem into your new
20 > > filesystem and chroot.
21 > >
22 > > * Do your regular gentoo install. When your done, perhaps clean out the
23 > > /usr/portage area? Unmount.
24 >
25 > Or mount your /usr/portage from the outer filesystem like you describe above
26 > for /proc. I do the same for /usr/src too, since I dont want kernel sources
27 > on my livecd
28 >
29 > * build isolinux. The origin site has a later version than in portage
30 >
31 > * copy the initrd image from the original livecd. (no need to modify it)
32 >
33 > * look at the isolinux config file from the original livecd. you might want to
34 > tweak it
35 >
36 > * grep for CDBOOT in the original livecd /etc directory. There are a few
37 > baselayout files that have been tweaked from the original portage versions.
38 > In this bugzilla entry I suggested it would be nice to standardise this:
39 > http://bugs.gentoo.org/show_bug.cgi?id=11330
40 >
41 > > * Make an el torito CD.(not entirely sure how to do this part)
42 >
43 > My build script uses the command:
44 >
45 > mkisofs -x "/rescuedisk/image/usr/share/doc" -x
46 > "/rescuedisk/image/usr/share/man" -o disk.iso -J -r -nobak -b
47 > isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4
48 > -boot-info-table /rescuedisk/image
49 >
50 > > * Copy over filesystem image to the CD.
51 > >
52 > > * I'm thinking you'll probably need a RAMDISK for temporary file storage
53 > > and whatnot.
54 >
55 > The original livecd initrd takes care of all that nicely.
56 >
57 > > Sounds like it would be a fun project. If someone has already done such a
58 > > document it would be very interesting to see. If not, it might be fun to
59 > > write. ;-)
60 >
61 > its on my todo list
62 >
63 >
64 >
65 > --
66 > gentoo-dev@g.o mailing list
67 >
68
69 --
70 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] Livecds Paul de Vrieze <gentoo-user@××××××××.net>