[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: boot-floppies 2.2.9 and Debian CD's...



On Thu, Mar 23, 2000 at 11:52:28PM +0100, J.A. Bezemer wrote:
> 
> On Thu, 23 Mar 2000, Ben Collins wrote:
> 
> > Just a note to the CD folks. I've added a few things to boot-floppies
> > 2.2.9 (upcoming) that makes CD installs a little smarter by making
> > assumptions on where the files are and avoid asking the user. The way
> > dbootstrap detects this is a file (empty or not, doesn't matter),
> > "/cdrom_image" on the root filesystem that it is running on.
> > 
> > To implement this you only need to create this file in the root image that
> > is used for the CD's initrd. You can look at the sparc cd stuff, but it's
> > slightly different in that it actually uses the CD for the root
> > filesystem, whereas everything else will probably only use the root image.
> > 
> > Let me know if anyone has questions about how to set this up on the CD's.
> 
> Well, I'm not the guy who makes the CDs, but AFAIK we "always" used everything
> straight from the boot-floppies dir on the FTP servers, and did not make our
> own version of any file/floppy image. Should either -boot or -cd make these
> new images?

When mkhybrid creates the CD, you pass it the image(s) to use for booting.
One of these is the root.bin from boot-floppies. It does not need to be
recreated for the CD's, just simply:

gzip -dc root.bin > root.bin.uncompressed
mount -o loop root.bin.uncompressed /mnt
touch /mnt/cdrom_image
umount /mnt
gzip -c9 root.bin.uncompressed > root.bin

It's quite simple, and then that becomes the root image used for CD
booting.

Ben

-- 
 -----------=======-=-======-=========-----------=====------------=-=------
/  Ben Collins  --  ...on that fantastic voyage...  --  Debian GNU/Linux   \
`     bcollins@debian.org  --  bcollins@openldap.org  --  bmc@visi.net     '
 `---=========------=======-------------=-=-----=-===-======-------=--=---'


Reply to: