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

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



On Fri, Mar 24, 2000 at 01:19:59PM +0100, Raphael Hertzog wrote:
> Le Thu, Mar 23, 2000 at 05:58:45PM -0500, Ben Collins écrivait:
> > 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.
> 
> Yes, but mount needs root rights, and I would better not add such a
> requiry for using debian-cd... is there no other way to get this
> information ? Is there no way to get the device that has been used 
> to boot ? Or can't we just automatically detect CD roms and look if there's a
> .disk/info file in it ?

We do already detect cdrom's, but we still ask the user. Problem is you
can't really know if you've booted off of a CDROM because the root
filesystem is /dev/ram no matter what, which could be a tftp image,
floppy, cdrom, zip drive, syslinux, or who knows what else.

There is one other way I suppose this could be done, and that would
require passing some "cdrom_install" type flag via the bootup so that
dbootstrap gets it. I'm not so sure how this solution would work on other
archs since I'm not too familiar with the other boot loaders. I think it
would still require mounting the rescue image and running the bootloader
over it again though.

> Why wouldn't you put /cdrom_image by default in all 2.88 Mb image that are
> only used for CDs AFAIK ?

That could be very well possible. Since the code in dbootstrap falls back
to normal operation if it does not find the files it expects, then we
wouldn't have to worry about a CD that a user burned incorrectly.

Ben

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


Reply to: