|
楼主 |
发表于 2004-5-24 08:25:04
|
显示全部楼层
制作模块
How to create own modules
At first, you have to download Linux Live scripts. Unpack them in /tmp directory, chdir to /tmp/linux-live-y.x.z/ and run ./install. Your system is now prepared.
The easiest way how to create a module is to convert Slackware's package to IMG. For example, to convert quake.tgz slackware's package use:
tgz2img quake.tgz quake.img
To create a module for SLAX, create an empty directory somewhere, for example in /tmp/newmod. Then create the essential module content in this directory. Each module should contain these files:
preinsert # /tmp/newmod/preinsert
postinsert # /tmp/newmod/postinsert
manual # /tmp/newmod/manual
and it should contain these directories:
data/ # /tmp/newmod/data/
The directory ./data should contain the whole filesystem (all changed or new files and directories). Let's assume that ./data is the new root here, so if you wish to include /bin/bash in your module, place it in ./data/bin/bash (or in /tmp/newmod/data/bin/bash in this example).
Note: The content of ./data directory could be created from slackware's TGZ package by using "installpkg -root ./data packagename.tgz" (or by "installpkg -root /tmp/newmod/data/ packagename.tgz" in this example)
Finaly, create the module by using
dir2img /tmp/newmod/ /tmp/modulename.img
The first argument is the module directory, the second one is the new name for your module. |
|