MainModReadme

From MorphixWiki

Jump to: navigation, search

HomePage -> MorphixDevel

Contents

[edit] Morphix MainModule README

Things should be kept as loose as possible for module makers, but there are a few guidelines to help people out

[edit] Structure

A MainModule is a compressed iso9660 filesystem, but without a header (at least for now). Use the supplied extract_filesystem tool to extract a Main or MiniModule, use the supplied compress_filesystem tool to compress it back. These can be found on the Morphix website, on the CD in tools.tar.gz and in the /morphix dir of a mainmodule

The example mainmodules consist of a debootstrapped Debian filesystem, without kernel, modules, /dev or /proc (this is handled by base) During loading, /etc and /var of the module are loaded on the ramdisk, except for /var/lib. Make sure /var/cache/apt is empty after apt-getting.

There will be a script to automatically clean a mainmodule of apt-cruft Also, detected configfiles are copied from base to /etc of main

[edit] MainModule-specific files

o loadmod.sh - is executed on loading of the module, handles MiniModules 
o init.sh    - is executed after chrooting, handles X/shell/etc 
o module     - has the name of the module, needed for minimodule loading

[edit] Needed dirs and mountpoints

o /morphix     - Containing the above files 
o /MorphixCD   - Needed for linking the CDROM to, 
                 as some devicefiles are links to it
o /dev         - Linked from Base + ramdisk
o /proc        - Linked from ramdisk
Personal tools