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

Re: Live CDs for CDDs



El Tue, Apr 13, 2004 at 06:34:05PM +0200, Petter Reinholdtsen escribió:
> [Sergio Talens-Oliag]
> >   The process would be something like:
> >
> >   1. Install the base sytem on a chroot as we would do on a real system,
> >   avoiding unnecesary questions (i.e. we can skip the partiton and
> >   formating questions and preseed the debconf database as we would do on
> >   a CDD).
> >
> >   2. Install the rest of the preselected packages and its dependencies.
> >   
> >   3. If we are talking about a CDD, apply the postconfiguration scripts,
> >   if any.
> 
> I got a script doing most of this for debian-edu.  It is available
> from
> <URL:http://developer.skolelinux.no/cgi-bin/viewcvs.cgi/skolelinux/src/task-skolelinux/tools/check-install.sh>.
>
> It is a bit old, but the basic ideas are already there.
> 
>  - run debootstrap to generate the chroot
>  - make sure daemons are not started in the chroot
>  - install the base-config overrides and extra packages
>  - run base-config in non-interactive mode to install the rest
>  - undo daemon workaround

  Great, I'll take a look at it.

> >   4. Replace or add special configuration files and programs. I think we
> >   should try to keep the original /etc and use a different one when
> >   booting as LiveCD, just to be able to install the Live system without
> >   editing the /etc files (well, not too much ;).
> 
> Anyone know what is needed here?

  Well, I'm not an expert, but I think that what we need is a special
  livecd-init scheme that does not use the /etc/init.d scripts when
  booting from CD.
  
  My plan is to use existing debian tools like busybox's init with a
  livecd_init script that does the hardware detection (using the d-i
  hardware detection routines, based on discover2?), mounts the
  compressed root filesystem, configures the network (dhcp?), configures
  the X server (if needed) and executes special scripts if provided, ...

  For the *Live* configuration we can use a RAM based /etc, that
  contains links to our original /etc files and generates some of them
  (I think that knoppix uses this model, but I'm not sure right now).

  As I've said in a previous post, I plan to work on all this, but right
  now I don't have the time to start.

> >   5. Build a compressed filesystem from the chroot.
> >
> >   6. Build an ISO image using the compressed filesytem and a Debian
> >   Kernel with support for all the needs of the LiveCD (mainly compressed
> >   filesystems).
> 
> These should be fairly straight forward.

  Yes, both are trivial ... but we need the rest before ... ;)

  Greetings,

    Sergio.

-- 
Sergio Talens-Oliag <sto@debian.org>   <http://people.debian.org/~sto/>
Key fingerprint = 29DF 544F  1BD9 548C  8F15 86EF  6770 052B  B8C1 FA69

Attachment: signature.asc
Description: Digital signature


Reply to: