Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] Automated ISO generation

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Karsten Behrmann <BearPerson AT gmx.net>
  • To: sm-discuss AT lists.ibiblio.org
  • Subject: Re: [SM-Discuss] Automated ISO generation
  • Date: Sat, 8 Jan 2005 23:40:31 +0100

> What I'm thinking is one would run `mk-smgl-iso [rootdir]` and the script
> would
> either use /mnt/smgl (as an example of a default ISO_ROOT) or set
> ISO_ROOT=$rootdir and then go from there, doing the following:
>
> 1. Check if $ISO_ROOT is a chrootable environment
> a) If not, generate a chrootable environment in $ISO_ROOT
> b) If so, we're done for this step
> 2. Chroot to $ISO_ROOT
> 3. Bind /var/spool/sorcery to $ISO_ROOT/var/spool/sorcery, /proc to
> $ISO_ROOT/proc, and /dev to $ISO_ROOT/dev
> 4. Start generating the ISO
> 5. Unbind everything and exit the chroot

Well, I'm currently seeing generating the ISO and generating a
chroot environment as two distinctly different processes.

The iso making scripts need:
1. a chroot'able subsystem (with everything for the initrd including libs
and kernel modules)
2. The cache files for all spells to go on, or be installed by, the ISO.
3. some other binaries like mkisofs, mke2fs and such.

That's about it.

For safety and space reasons, I'd just stuff this all into the same chroot.
that way, if a rm -rf /bin gets past (although it shouldn't if the scripts
are configured sanely), it won't do any damage to the host system.
I would, however, use the same system as a chroot for ISO content and for
the ISO build tools, I don't see how this could cause any complications.

I'd make a seperate set of spells to keep everything up to date.
They would detect spells that don't have cache files for the most recent
spell version and cast them.
Because spells are sometimes said to include libraries they find on the system
even if told not to, the scripts would immediately dispel every
newly-installed
spells on the system (keeping just a minimal set needed to cast).

Making the chroot system will be a one-time process, so I don't think we'll
get enough feedback to make properly maintained scripts for that.
I guess unpacking cache files for the basesystem, installing sorcery and
stable
grimoire, doing sorcery rebuild twice should work fairly enough.
(as long as we keep a critical eye on aliens).

(sorry for writing such a lot again)
So Far,
Karsten

Attachment: pgpCpVRzpw5W8.pgp
Description: PGP signature




Archive powered by MHonArc 2.6.24.

Top of Page