Instructions for generating basesystem chroots using Cauldron scripts
The method for generating a fresh basesystem chroot (henceforth baseroot) is actually relatively simple, once the initial setup is accomplished. These instructions will assume that you are in a development directory in which you have write permissions, and that you would prefer to keep all baseroot-related files under the hierarchy of the current working directory.
Initial Setup
- Get a clone of the Cauldron git repository:
- Checkout the stable branch:
- cd cauldron
- git checkout -b stable origin/stable
- cd ..
Get an existing baseroot image:
wget http://download.sourcemage.org/image/official/smgl-stable-0.32-basesystem-x86.tar.bz2
- tar xf smgl-stable-0.32-basesystem-x86.tar.bz2
Generation
- Run spellcaster.sh -c:
- cauldron/scripts/spellcaster.sh -c -s sys smgl-stable-0.32-basesystem-x86 x86
- Optional: package the baseroot directory into a tarball:
- cauldron/scripts/mksystem.sh -s sys -i .
The output of spellcaster.sh goes to the directory specified by -s (it will be created if it doesn't exist). The output of mksystem.sh currently goes to system.tar.bz2 in the directory specified by -i (an option will be added soon to have finer control over the output location and filename).
For additional information on the options and capabilities of spellcaster.sh and mksystem.sh, please run each respective script with the -h option.
