live\-helper is a set of scripts to build Debian Live system images. The idea behind live-helper is a framework that uses a configuration directory to completely automate and customize all aspects of building a Live image.
More documentation about how to use live\-helper is available in the individual manpages for each helper and in the manual at <\fIhttp://live.debian.net/manual/\fR>.
The following command line options are supported by most live\-helper programs. See the man page of each program for a complete explanation of what each option does.
If a program's name starts with "lh_", and the program is not on the list below list, then it is not part of the live\-helper package, but it should still work like the other programs described on this page.
Here is the complete list of all available live\-helper commands. See their man
pages for additional documentation.
.SHHIGH\-LEVELCOMMANDS(PORCELAIN)
We separate the porcelain commands into the main commands and some ancillary user utilities.
.SSMainporcelaincommands
.IP"\fBlh_config\fR(1)"4
create configuration for live\-helper
.IP"\fBlh_bootstrap\fR(1)"4
create the first stage by bootstrapping a basic debian system
.IP"\fBlh_chroot\fR(1)"4
create the second stage by customizing the chroot
.IP"\fBlh_binary\fR(1)"4
create the third stage by generating a binary image
.IP"\fBlh_source\fR(1)"4
create the optional fourth stage by generating a source image
.IP"\fBlh_clean\fR(1)"4
clean up system build directories
.SSAncillaryCommands
.IP"\fBlh\fR(1)"4
generic live\-helper wrapper
.IP"\fBlh_build\fR(1)"4
alias for all stages
.IP"\fBlh_local\fR(1)"4
helper for using a local live\-helper
.IP"\fBlh_testroot\fR(1)"4
ensure that a system is built as root
.SHLOW-LEVELCOMMANDS(PLUMBING)
The actual work of live\-helper is implemented in the low-level commands, called plumbing. They are not supposed to be used by end users, they should stick with porcelains as they ensure that all the different plumbing commands are executed in the right order. However, if you intend to reuse live\-helper commands in your own scripts, then the plumbings might be of interest for you.
Note that the interface (set of options and the semantics) to these low-level commands are meant to be a lot more stable than Porcelain level commands. The interface to Porcelain commands on the other hand are subject to change in order to improve the end user experience.
Many live\-helper commands make use of files in the \fIconfig/\fR directory to control what they do. Besides the common \fIconfig/common\fR, which is used by all live\-helper commands, some additional files can be used to configure the behavior of specific live\-helper commands. These files are typically named config/stage or config/stage_helper (where "stage" of course, is replaced with the name of the stage that they belong to, and "helper" with the name of the helper).
.PP
For example, lh_bootstrap_debootstrap uses files named config/bootstrap and config/bootstrap_debootstrap to read the options it will use. See the man pages of individual commands for details about the names and formats of the files they use. Generally, these files contain variables with values assigned, one variable per line. Some programs in live\-helper use pairs of values or slightly more complicated variable assignments.
.PP
Note that live\-helper will respect environment variables which are present in the context of the shell it is running. If variables can be read from config files, then they override environment variables, and if command line options are used, they override values from config files. If no value for a given variable can be found and thus is unset, live\-helper will automatically set it to the default value.
.PP
In some rare cases, you may want to have different versions of these files for different architectures or distributions. If files named config/stage.arch or config/stage_helper.arch, and config/stage.dist or config/stage_helper.dist exist, where "arch" is the same as the output of "dpkg \-\-print\-architecture" and "dist" is the same as the codename of the target distribution, then they will be used in preference to other, more general files.
.PP
All config files are shell scripts which are sourced by a live\-helper program. That means they have to follow the normal shell syntax. You can also put comments in these files; lines beginning with "#" are ignored.
More information about live\-helper and the Debian Live project can be found in the homepage at <\fIhttp://live.debian.net/\fR> and in the manual at <\fIhttp://live.debian.net/manual/\fR>.
Report bugs by submitting a bugreport for the live\-helper package in the Debian Bug Tracking System at <\fIhttp://bugs.debian.org/\fR> or write a mail to the mailinglist at <\fIdebian-live@lists.debian.org\fR>.