There is no dir2slm / slm2dir' functions. There are functions like
dir2lzo() , dir2gz() , dir2lzma(), dir2lzm() . I use dir2xz() {
dir2squashfs xz "$@" -Xbcj x86 -Xdict-size '50%'
}
scripts used to create the modules look on 00_common, 06_createmodule, 08_compressmodule
dir2$COMP modulename.slm is used. (where COMP can be lzo, gz, lzma, xz)
I use xz which is defined in these
scripts in
config file First someone can download from github these
scripts and from them pull all the other scripts to create the live iso for xfce,kde,openbox, fluxbox, mate The
documentation
Also SLI install only modules 01-core, 02-basic, 03-full, 04-common, 05-kernel, 06-live. Does not look for optional modules someone has added and recreate the live iso.
Boot options in general
The doc file
the source code
System language and keymap layout
"locale": system language; example: "locale=fr_FR.UTF-8"
"keymap": keymap layout; example: "keymap=fr"; the first two caracters are used for Xorg keymap layout
"tz": timezone; example: "tz=Europe/Paris" (value must be a valid path from "/usr/share/zoneinfo")
"hwc": hardware clock: "UTC" or "localtime"
Modules loading
"include=module1:module2:...": to load selected modules from "/boot/optional" directory (module names are the SquashFS file names)
"exclude=module1:module2:...": to specify the main modules (from "/boot/modules" directory) not to load; example: "exclude=1-gui"
Persistent home directory storage or system changes
"home=/path/to/directory|NFS_resource|UUID|label": activates persistent home directory;
"changes=/path/to/directory|NFS_resource|UUID|label": activates persistent system changes .
I have change it to load a persistent file formatted in ext3 filesystem. So can be used on every system. e.g. changes=persistent ( It is used on boot options on 32 bit and on 64 bit non EFI systems and user has to type changes=persistent on EFI 64 bit iso)
Misc
"runlevel=[1-5]": overrides default startup runlevel (cf "/etc/inittab") ( On Salix Live i use runlevel=4)
on runlevel 5, the user with uid 1000 will be automatically logged in and X session started (if installed); if this user doesn’t exists, root user is used instead ( Not used on Salix Live)
"copy2ram=yes": enables running the live system from memory ( i never used it on Salix Live)
"useswap=yes": enables swap on detected swap partitions ( It is used in boot menu options)
"rootpw=password": defines a root password ( No needed on Salix Live)