Previous: Overview Table of Contents Next: Live CD structure

larch – a do-it-yourself live Arch Linux CD



Profiles

This feature of the larch scripts allows bundling all the configuration information for a particular live CD 'design' into a single directory. That includes the list of packages to be installed, locale information and the particular tweaks and additions needed to customize the CD, in particular a subdirectory containing the 'overlay' files - those files which have been changed from their initial fresh state after installation and those which have simply been added.

In order to allow more flexibility with the overlay, larch requires that everything in this overlay directory has the correct permissions and ownerships. That means you have to be quite careful when editing this area manually. It is however intended that most of the tweaking will be done in situ (i.e. within a running live USB system), using a utility - see 'Session saving' - to recreate the compressed overlay file-system (overlay.ovl).

To make it a little more difficult to make a mess while editing the initial overlays, e.g. by unpacking a profile (well, the overlay part) as a normal user, I have included a little self-extracting archive utility, xpack, which enables archives to be so packed that only root can unpack them. The overlays in the supplied example profiles are packed with this utility to overlay.xpk archives.

If you would like to have a look at a profile, look in the 'profiles' directory in the distribution. Each of its subdirectories is a profile, the subdirectory name is also the profile name. If you want to make your own profile, it is probably easiest to start with one of the examples. Copy it to a working directory and rename it appropriately. If you want to unpack the overlay archive, you need to be root, go to the directory and run

        ./overlay.xpk .
(don't miss the final '.', the unpacker needs an existing directory as parameter).

After editing to your heart's content, you can build the corresponding live CD system with the call:

        (path/to/)mklarch -p directory
where 'directory' is your profile directory. You don't need to bother about repacking your 'overlay' directory, as an unpacked 'overlay' directory has precedence over an 'overlay.xpk' archive. But if you do want to repack it, delete the old 'overlay.xpk' and run (as root)
        (path/to/)xpack -r overlay overlay.xpk
xpack is found in the larch 'run' directory.

The important files within a profile are described below:

Previous: Overview Table of Contents Next: Live CD structure