2011-09-07 15:41:42 +00:00
.TH LIVE\-BUILD 7 2011 \- 09 \- 07 3 .0~a31-1 "Debian Live Project"
2007-09-23 08:04:47 +00:00
.SH NAME
2010-09-02 11:55:53 +00:00
\fB live\- build\fR \- the Debian Live tool suite
2007-09-23 08:04:47 +00:00
.SH SYNOPSIS
2010-05-08 11:49:47 +00:00
. \" FIXME
2010-09-02 11:55:53 +00:00
\fB lb \fR \fI COMMAND\fR [\fB \- h|\- \- help\fR ] [\fB \- u|\- \- usage\fR ] [\fB \- v|\- \- version\fR ] [\fB \- \- breakpoints\fR ] [\fB \- \- conffile\fR ] [\fB \- \- debug\fR ] [\fB \- \- force\fR ] [\fB \- \- quiet\fR ] [\fB \- \- verbose\fR ]
2010-05-08 11:49:47 +00:00
. \" FIXME
2009-01-29 20:55:23 -01:00
.SH DESCRIPTION
2010-05-08 11:49:47 +00:00
. \" FIXME
2010-09-02 11:55:53 +00:00
live\- build is a set of scripts to build Debian Live system images. The idea behind live\- build is a tool suite that uses a configuration directory to completely automate and customize all aspects of building a Live image.
2007-11-13 18:43:25 -01:00
.PP
2010-09-02 11:55:53 +00:00
The \fI COMMAND\fR is a name of a live\- build command (see below).
2007-11-13 18:43:25 -01:00
.PP
2010-09-02 11:55:53 +00:00
More documentation about how to use live\- build is available in the individual manpages for each helper and in the manual at <\fI http://live.debian.net/manual/\fR >.
2010-05-08 11:49:47 +00:00
. \" FIXME
2007-09-23 08:04:47 +00:00
2009-01-29 20:55:23 -01:00
.SH OPTIONS
2010-05-08 11:49:47 +00:00
. \" FIXME
2010-09-02 11:55:53 +00:00
.SS Shared live\-build options
The following command line options are supported by all live\- build programs.
2010-05-08 11:49:47 +00:00
.IP "\fB-h, \-\-help\fR" 4
2007-11-13 18:43:25 -01:00
display help and exit.
2010-05-08 11:49:47 +00:00
.IP "\fB-u, \-\-usage\fR" 4
2007-11-13 18:43:25 -01:00
show usage and exit.
2010-05-08 11:49:47 +00:00
.IP "\fB-v, \-\-version\fR" 4
2007-11-13 18:43:25 -01:00
output version information and exit.
2010-09-02 11:55:53 +00:00
.SS Common live\-build options
The following command line options are supported by most live\- build programs. See the man page of each program for a complete explanation of what each option does.
2007-09-23 08:04:49 +00:00
.IP "\fB\-\-breakpoints\fR" 4
2007-11-13 18:43:25 -01:00
run with breakpoints.
2007-09-23 08:04:49 +00:00
.IP "\fB\-\-conffile\fR" 4
2007-11-13 18:43:25 -01:00
use custom configuration file.
2007-09-23 08:04:49 +00:00
.IP "\fB\-\-debug\fR" 4
2007-11-13 18:43:25 -01:00
show debug information.
2007-09-23 08:04:48 +00:00
.IP "\fB\-\-force\fR" 4
force helper execution, even if stage file exists.
2007-09-23 08:04:49 +00:00
.IP "\fB\-\-quiet\fR" 4
2007-11-13 18:43:25 -01:00
be quiet.
2007-09-23 08:04:49 +00:00
.IP "\fB\-\-verbose\fR" 4
2007-11-13 18:43:25 -01:00
be verbose.
2010-05-08 11:49:47 +00:00
. \" FIXME
2007-09-23 08:04:48 +00:00
2010-09-02 11:55:53 +00:00
.SH LIVE\-BUILD COMMANDS
2010-05-08 11:49:47 +00:00
. \" FIXME
2010-09-02 11:55:53 +00:00
We divide live\- build into high level ("porcelain") commands and low level ("plumbing") commands.
2007-09-23 08:05:11 +00:00
.PP
2010-09-02 11:55:53 +00:00
Here is the complete list of all available live\- build commands. See their man
2009-01-29 20:55:23 -01:00
pages for additional documentation.
2010-05-08 11:49:47 +00:00
. \" FIXME
2009-01-29 20:55:23 -01:00
.SH HIGH\-LEVEL COMMANDS (PORCELAIN)
2010-05-08 11:49:47 +00:00
. \" FIXME
2009-01-29 20:55:23 -01:00
We separate the porcelain commands into the main commands and some ancillary user utilities.
.SS Main porcelain commands
2010-09-07 14:38:09 +00:00
.IP "\fBlb_config\fR(1)" 4
2010-09-02 11:55:53 +00:00
create configuration for live\- build
2010-09-07 14:38:09 +00:00
.IP "\fBlb_bootstrap\fR(1)" 4
2009-01-29 20:55:23 -01:00
create the first stage by bootstrapping a basic debian system
2010-09-07 14:38:09 +00:00
.IP "\fBlb_chroot\fR(1)" 4
2009-01-29 20:55:23 -01:00
create the second stage by customizing the chroot
2010-09-07 14:38:09 +00:00
.IP "\fBlb_binary\fR(1)" 4
2009-01-29 20:55:23 -01:00
create the third stage by generating a binary image
2010-09-07 14:38:09 +00:00
.IP "\fBlb_source\fR(1)" 4
2009-01-29 20:55:23 -01:00
create the optional fourth stage by generating a source image
2010-09-07 14:38:09 +00:00
.IP "\fBlb_clean\fR(1)" 4
2009-01-29 20:55:23 -01:00
clean up system build directories
.SS Ancillary Commands
2010-10-12 08:58:38 +00:00
.IP "\fBlb\fR(1)" 4
2010-09-02 11:55:53 +00:00
generic live\- build wrapper
2010-09-07 14:38:09 +00:00
.IP "\fBlb_build\fR(1)" 4
2009-01-29 20:55:23 -01:00
alias for all stages
2010-09-07 14:38:09 +00:00
.IP "\fBlb_local\fR(1)" 4
2010-09-02 11:55:53 +00:00
helper for using a local live\- build
2010-09-07 14:38:09 +00:00
.IP "\fBlb_testroot\fR(1)" 4
2009-01-29 20:55:23 -01:00
ensure that a system is built as root
2010-05-08 11:49:47 +00:00
. \" FIXME
2009-01-29 20:55:23 -01:00
2010-05-08 11:49:47 +00:00
.SH LOW\-LEVEL COMMANDS (PLUMBING)
. \" FIXME
2010-09-02 11:55:53 +00:00
The actual work of live\- build 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\- build commands in your own scripts, then the plumbings might be of interest for you.
2007-09-23 08:05:11 +00:00
.PP
2010-05-08 11:49:47 +00:00
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.
2009-01-29 20:55:23 -01:00
.SS Bootstrap commands
2010-09-07 14:38:09 +00:00
.IP "\fBlb_bootstrap_cache\fR(1)" 4
2009-01-29 20:55:23 -01:00
cache bootstrap stage
2010-09-07 14:38:09 +00:00
.IP "\fBlb_bootstrap_cdebootstrap\fR(1)" 4
2009-01-29 20:55:23 -01:00
bootstrap a Debian system with cdebootstrap(1)
2010-09-07 14:38:09 +00:00
.IP "\fBlb_bootstrap_copy\fR(1)" 4
2009-01-29 20:55:23 -01:00
bootstrap by copying the host system
2010-09-07 14:38:09 +00:00
.IP "\fBlb_bootstrap_debootstrap\fR(1)" 4
2009-01-29 20:55:23 -01:00
bootstrap a Debian system with debootstrap(8)
.SS Chroot commands
2010-09-07 14:38:09 +00:00
.IP "\fBlb_chroot_apt\fR(1)" 4
2009-01-29 20:55:23 -01:00
manage /etc/apt/apt.conf
2010-09-07 14:38:09 +00:00
.IP "\fBlb_chroot_cache\fR(1)" 4
2009-01-29 20:55:23 -01:00
cache chroot stage
2010-09-07 14:38:09 +00:00
.IP "\fBlb_chroot_debianchroot\fR(1)" 4
2009-01-29 20:55:23 -01:00
manage /etc/debian_chroot
2010-09-07 14:38:09 +00:00
.IP "\fBlb_chroot_devpts\fR(1)" 4
2009-01-29 20:55:23 -01:00
mount /dev/pts
2010-09-07 14:38:09 +00:00
.IP "\fBlb_chroot_dpkg\fR(1)" 4
2009-01-29 20:55:23 -01:00
manage /sbin/dpkg
2010-09-07 14:38:09 +00:00
.IP "\fBlb_chroot_hacks\fR(1)" 4
2009-01-29 20:55:23 -01:00
execute hacks in chroot
2010-09-07 14:38:09 +00:00
.IP "\fBlb_chroot_hostname\fR(1)" 4
2009-01-29 20:55:23 -01:00
manage /bin/hostname
2010-09-07 14:38:09 +00:00
.IP "\fBlb_chroot_hosts\fR(1)" 4
2009-01-29 20:55:23 -01:00
manage /etc/hosts
2010-09-07 14:38:09 +00:00
.IP "\fBlb_chroot_install\-packages\fR(1)" 4
2009-01-29 20:55:23 -01:00
install queued packages into chroot
2010-09-07 14:38:09 +00:00
.IP "\fBlb_chroot_interactive\fR(1)" 4
2009-01-29 20:55:23 -01:00
make build interactive
2010-09-07 14:38:09 +00:00
.IP "\fBlb_chroot_linux\-image\fR(1)" 4
2010-05-08 11:49:47 +00:00
manage /etc/kernel\- img.conf
2011-07-19 09:57:14 +00:00
.IP "\fBlb_chroot_hooks\fR(1)" 4
2009-01-29 20:55:23 -01:00
execute local hooks in chroot
2010-09-07 14:38:09 +00:00
.IP "\fBlb_chroot_local\-includes\fR(1)" 4
2009-01-29 20:55:23 -01:00
copy local files into chroot
2011-06-15 20:08:23 +00:00
.IP "\fBlb_chroot_packages\fR(1)" 4
queue install of packages into chroot
2010-09-07 14:38:09 +00:00
.IP "\fBlb_chroot_local\-patches\fR(1)" 4
2009-01-29 20:55:23 -01:00
apply local patches against chroot
2010-09-07 14:38:09 +00:00
.IP "\fBlb_chroot_local\-preseed\fR(1)" 4
2009-01-29 20:55:23 -01:00
use debconf local preseeding file
2010-11-23 10:31:15 -01:00
.IP "\fBlb_chroot_packagelists\fR(1)" 4
queue install of package lists into chroot
2010-09-07 14:38:09 +00:00
.IP "\fBlb_chroot_preseed\fR(1)" 4
2009-01-29 20:55:23 -01:00
use debconf preseeding file
2010-09-07 14:38:09 +00:00
.IP "\fBlb_chroot_proc\fR(1)" 4
2009-01-29 20:55:23 -01:00
mount /proc
2010-09-07 14:38:09 +00:00
.IP "\fBlb_chroot_resolv\fR(1)" 4
2009-01-29 20:55:23 -01:00
manage /etc/resolv.conf
2010-09-07 14:38:09 +00:00
.IP "\fBlb_chroot_selinuxfs\fR(1)" 4
2009-01-29 20:55:23 -01:00
mount /selinux
2011-06-15 18:48:53 +00:00
.IP "\fBlb_chroot_archives\fR(1)" 4
2009-01-29 20:55:23 -01:00
manage /etc/apt/sources.list
2010-09-07 14:38:09 +00:00
.IP "\fBlb_chroot_sysfs\fR(1)" 4
2009-01-29 20:55:23 -01:00
mount /sys
2010-09-07 14:38:09 +00:00
.IP "\fBlb_chroot_sysv\-rc\fR(1)" 4
2010-05-08 11:49:47 +00:00
manage /usr/sbin/policy\- rc.d
2011-06-15 20:01:17 +00:00
.IP "\fBlb_chroot_task\-lists\fR(1)" 4
install task lists into chroot
2009-01-29 20:55:23 -01:00
.SS Binary commands
2010-09-07 14:38:09 +00:00
.IP "\fBlb_binary_chroot\fR(1)" 4
2009-01-29 20:55:23 -01:00
copy chroot into chroot
2010-09-07 14:38:09 +00:00
.IP "\fBlb_binary_debian\-installer\fR(1)" 4
2010-05-08 11:49:47 +00:00
install debian\- installer into binary
2010-09-07 14:38:09 +00:00
.IP "\fBlb_binary_disk\fR(1)" 4
2009-01-29 20:55:23 -01:00
install disk information into binary
2010-09-07 14:38:09 +00:00
.IP "\fBlb_binary_grub\fR(1)" 4
2009-01-29 20:55:23 -01:00
installs grub into binary
2010-09-07 14:38:09 +00:00
.IP "\fBlb_binary_grub2\fR(1)" 4
2009-10-28 11:15:30 -01:00
installs grub2 into binary
2010-09-07 14:38:09 +00:00
.IP "\fBlb_binary_includes\fR(1)" 4
2009-01-29 20:55:23 -01:00
copy files into binary
2010-09-07 14:38:09 +00:00
.IP "\fBlb_binary_iso\fR(1)" 4
2009-01-29 20:55:23 -01:00
build iso binary image
2010-09-07 14:38:09 +00:00
.IP "\fBlb_binary_linux\-image\fR(1)" 4
2010-05-08 11:49:47 +00:00
install linux\- image into binary
2010-09-07 14:38:09 +00:00
.IP "\fBlb_binary_local\-hooks\fR(1)" 4
2009-01-29 20:55:23 -01:00
execute local hooks in binary
2010-09-07 14:38:09 +00:00
.IP "\fBlb_binary_local\-includes\fR(1)" 4
2009-01-29 20:55:23 -01:00
copy files into binary
2010-11-23 10:31:15 -01:00
.IP "\fBlb_binary_local\-packagelists\fR(1)" 4
install local package lists into binary
2010-09-07 14:38:09 +00:00
.IP "\fBlb_binary_manifest\fR(1)" 4
2009-01-29 20:55:23 -01:00
create manifest
2010-09-07 14:38:09 +00:00
.IP "\fBlb_binary_checksums\fR(1)" 4
2010-05-01 05:39:49 +00:00
create binary checksums (md5, sha1, and/or sha256)
2010-09-07 14:38:09 +00:00
.IP "\fBlb_binary_memtest\fR(1)" 4
2009-01-29 20:55:23 -01:00
installs a memtest into binary
2010-09-07 14:38:09 +00:00
.IP "\fBlb_binary_net\fR(1)" 4
2009-01-29 20:55:23 -01:00
build netboot binary image
2010-09-07 14:38:09 +00:00
.IP "\fBlb_binary_rootfs\fR(1)" 4
2009-01-29 20:55:23 -01:00
build rootfs image
2010-09-07 14:38:09 +00:00
.IP "\fBlb_binary_silo\fR(1)" 4
2009-01-29 20:55:23 -01:00
installs silo into binary
2010-09-07 14:38:09 +00:00
.IP "\fBlb_binary_syslinux\fR(1)" 4
2009-01-29 20:55:23 -01:00
installs syslinux into binary
2010-09-07 14:38:09 +00:00
.IP "\fBlb_binary_tar\fR(1)" 4
2009-01-29 20:55:23 -01:00
build harddisk binary image
2010-09-07 14:38:09 +00:00
.IP "\fBlb_binary_usb\fR(1)" 4
2010-05-08 11:49:47 +00:00
build binary usb\- hdd image
2010-09-07 14:38:09 +00:00
.IP "\fBlb_binary_virtual\-hdd\fR(1)" 4
2010-05-08 11:49:47 +00:00
build binary virtual\- hdd image
2010-09-07 14:38:09 +00:00
.IP "\fBlb_binary_win32\-loader\fR(1)" 4
2010-05-08 11:49:47 +00:00
installs win32\- loader into binary
2010-09-07 14:38:09 +00:00
.IP "\fBlb_binary_yaboot\fR(1)" 4
2009-01-29 20:55:23 -01:00
installs yaboot into binary
.SS Source commands
2010-09-07 14:38:09 +00:00
.IP "\fBlb_source_debian\fR(1)" 4
2009-01-29 20:55:23 -01:00
download sources
2010-09-07 14:38:09 +00:00
.IP "\fBlb_source_debian\-live\fR(1)" 4
2010-05-08 11:49:47 +00:00
copy debian\- live config into source
2010-09-07 14:38:09 +00:00
.IP "\fBlb_source_disk\fR(1)" 4
2009-01-29 20:55:23 -01:00
install disk information into source
2010-09-07 14:38:09 +00:00
.IP "\fBlb_source_iso\fR(1)" 4
2009-01-29 20:55:23 -01:00
build iso source image
2010-09-07 14:38:09 +00:00
.IP "\fBlb_source_checksums\fR(1)" 4
2010-05-01 05:39:49 +00:00
create source checksums (md5, sha1, and/or sha256)
2010-09-07 14:38:09 +00:00
.IP "\fBlb_source_net\fR(1)" 4
2009-01-29 20:55:23 -01:00
build source net image
2010-09-07 14:38:09 +00:00
.IP "\fBlb_source_tar\fR(1)" 4
2009-01-29 20:55:23 -01:00
build source tarball
2010-09-07 14:38:09 +00:00
.IP "\fBlb_source_usb\fR(1)" 4
2010-05-08 11:49:47 +00:00
build source usb\- hdd image
2010-09-07 14:38:09 +00:00
.IP "\fBlb_source_virtual\-hdd\fR(1)" 4
2010-05-08 11:49:47 +00:00
build source virtual\- hdd image
. \" FIXME
2007-09-23 08:05:09 +00:00
2009-01-29 20:55:23 -01:00
.SH CONFIG FILES
2010-05-08 11:49:47 +00:00
. \" FIXME
2010-09-02 11:55:53 +00:00
Many live\- build commands make use of files in the \fI config/\fR directory to control what they do. Besides the common \fI config/common\fR , which is used by all live\- build commands, some additional files can be used to configure the behavior of specific live\- build 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).
2009-01-29 20:55:23 -01:00
.PP
2010-09-07 14:38:09 +00:00
For example, lb_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\- build use pairs of values or slightly more complicated variable assignments.
2009-01-29 20:55:23 -01:00
.PP
2010-09-02 11:55:53 +00:00
Note that live\- build 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\- build will automatically set it to the default value.
2009-01-29 20:55:23 -01:00
.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
2010-09-02 11:55:53 +00:00
All config files are shell scripts which are sourced by a live\- build program. That means they have to follow the normal shell syntax. You can also put comments in these files; lines beginning with "#" are ignored.
2010-05-08 11:49:47 +00:00
. \" FIXME
.SH FILES
2011-05-18 17:37:51 +00:00
.IP "\fB/etc/live/build.conf\fR" 4
.IP "\fB/etc/live/build.d/\fR" 4
2009-01-29 20:55:23 -01:00
.SH SEE ALSO
2011-01-02 08:32:58 -01:00
\fI live\- boot\fR (7)
.PP
\fI live\- config\fR (7)
2010-05-08 11:49:47 +00:00
.PP
2010-09-02 11:55:53 +00:00
This program is a part of live\- build.
2007-09-23 08:04:47 +00:00
.SH HOMEPAGE
2010-09-02 11:55:53 +00:00
More information about live\- build and the Debian Live project can be found on the homepage at <\fI http://live.debian.net/\fR > and in the manual at <\fI http://live.debian.net/manual/\fR >.
2009-01-29 20:55:23 -01:00
.SH BUGS
2010-09-02 11:55:53 +00:00
Bugs can be reported by submitting a bugreport for the live\- build package in the Debian Bug Tracking System at <\fI http://bugs.debian.org/\fR > or by writing a mail to the Debian Live mailing list at <\fI debian-live@lists.debian.org\fR >.
2007-09-23 08:04:47 +00:00
.SH AUTHOR
2010-09-02 11:55:53 +00:00
live\- build was written by Daniel Baumann <\fI daniel@debian.org\fR > for the Debian project.