diff options
author | Daniel Baumann <daniel@debian.org> | 2009-01-29 22:55:23 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 19:09:40 +0100 |
commit | 98acdbe072faf950399135dfe7dfa633783d21bb (patch) | |
tree | cca0b158f0a6361f3437f885ad384c28781b8a4f /manpages/live-helper.en.7 | |
parent | dd74cb6b4717a9afa5ba392c604d4bd7815014a7 (diff) | |
download | vyos-live-build-98acdbe072faf950399135dfe7dfa633783d21bb.tar.gz vyos-live-build-98acdbe072faf950399135dfe7dfa633783d21bb.zip |
Rewriting all existent manpages.
Diffstat (limited to 'manpages/live-helper.en.7')
-rw-r--r-- | manpages/live-helper.en.7 | 338 |
1 files changed, 196 insertions, 142 deletions
diff --git a/manpages/live-helper.en.7 b/manpages/live-helper.en.7 index 4a0415f20..cbd93b5b0 100644 --- a/manpages/live-helper.en.7 +++ b/manpages/live-helper.en.7 @@ -1,138 +1,24 @@ -.TH LIVE\-HELPER 7 "2008\-08\-11" "1.0" "live\-helper" +.TH LIVE\-HELPER 7 "2009\-01\-23" "1.0.2" "live\-helper" .SH NAME live\-helper \- the Debian Live tool suite .SH SYNOPSIS -\fBlh_\fR\fI*\fR [\fB\-h|\-\-help\fR] [\fB\-u|\-\-usage\fR] [\fB\-v|\-\-version\fR] - -.SH DESCRIPTION -live\-helper is used to help you build a Debian Live system. The philosophy -behind live\-helper is to provide a collection of small, simple, and easily -understood tools that are used on a config directory to automate all aspects of -building a Debian Live image. - -.SH LIVE\-HELPER COMMANDS -Here is the complete list of available live\-helper commands. See their man -pages for additional documentation. -.IP "\fIlh\fR(1)" 4 -generic live\-helper wrapper -.IP "\fIlh_binary\fR(1)" 4 -meta\-helper for lh_binary_* -.IP "\fIlh_binary_chroot\fR(1)" 4 -.IP "\fIlh_binary_debian-installer\fR(1)" 4 -.IP "\fIlh_binary_disk\fR(1)" 4 -.IP "\fIlh_binary_encryption\fR(1)" 4 -.IP "\fIlh_binary_grub\fR(1)" 4 -.IP "\fIlh_binary_includes\fR(1)" 4 -.IP "\fIlh_binary_iso\fR(1)" 4 -.IP "\fIlh_binary_linux-image\fR(1)" 4 -.IP "\fIlh_binary_local-hooks\fR(1)" 4 -.IP "\fIlh_binary_local-includes\fR(1)" 4 -.IP "\fIlh_binary_local-packageslists\fR(1)" 4 -.IP "\fIlh_binary_manifest\fR(1)" 4 -.IP "\fIlh_binary_md5sum\fR(1)" 4 -.IP "\fIlh_binary_memtest\fR(1)" 4 -.IP "\fIlh_binary_net\fR(1)" 4 -.IP "\fIlh_binary_rootfs\fR(1)" 4 -.IP "\fIlh_binary_syslinux\fR(1)" 4 -.IP "\fIlh_binary_tar\fR(1)" 4 -.IP "\fIlh_binary_usb-hdd\fR(1)" 4 -.IP "\fIlh_binary_yaboot\fR(1)" 4 -.IP "\fIlh_bootstrap\fR(1)" 4 -meta\-helper for lh_bootstrap_* -.IP "\fIlh_bootstrap_cache\fR(1)" 4 -.IP "\fIlh_bootstrap_cdebootstrap\fR(1)" 4 -.IP "\fIlh_bootstrap_copy\fR(1)" 4 -.IP "\fIlh_bootstrap_debootstrap\fR(1)" 4 -.IP "\fIlh_build\fR(1)" 4 -meta\-helper for lh_bootstrap, lh_chroot, lh_binary, and lh_source -.IP "\fIlh_chroot\fR(1)" 4 -meta\-helper for lh_chroot_* -.IP "\fIlh_chroot_apt\fR(1)" 4 -.IP "\fIlh_chroot_cache\fR(1)" 4 -.IP "\fIlh_chroot_debianchroot\fR(1)" 4 -.IP "\fIlh_chroot_devpts\fR(1)" 4 -.IP "\fIlh_chroot_dpkg\fR(1)" 4 -.IP "\fIlh_chroot_hacks\fR(1)" 4 -.IP "\fIlh_chroot_hooks\fR(1)" 4 -.IP "\fIlh_chroot_hostname\fR(1)" 4 -.IP "\fIlh_chroot_hosts\fR(1)" 4 -.IP "\fIlh_chroot_interactive\fR(1)" 4 -.IP "\fIlh_chroot_linux-image\fR(1)" 4 -.IP "\fIlh_chroot_local-hooks\fR(1)" 4 -.IP "\fIlh_chroot_local-includes\fR(1)" 4 -.IP "\fIlh_chroot_local-packages\fR(1)" 4 -.IP "\fIlh_chroot_local-packageslists\fR(1)" 4 -.IP "\fIlh_chroot_local-preseed\fR(1)" 4 -.IP "\fIlh_chroot_localization\fR(1)" 4 -.IP "\fIlh_chroot_packages\fR(1)" 4 -.IP "\fIlh_chroot_packageslists\fR(1)" 4 -.IP "\fIlh_chroot_preseed\fR(1)" 4 -.IP "\fIlh_chroot_proc\fR(1)" 4 -.IP "\fIlh_chroot_resolv\fR(1)" 4 -.IP "\fIlh_chroot_sources\fR(1)" 4 -.IP "\fIlh_chroot_symlinks\fR(1)" 4 -.IP "\fIlh_chroot_sysfs\fR(1)" 4 -.IP "\fIlh_chroot_sysv-rc\fR(1)" 4 -.IP "\fIlh_chroot_sysvinit\fR(1)" 4 -.IP "\fIlh_chroot_tasks\fR(1)" 4 -.IP "\fIlh_clean\fR(1)" 4 -clean up build directories -.IP "\fIlh_config\fR(1)" 4 -create configuration directory -.IP "\fIlh_source\fR(1)" 4 -meta\-helper for lh_source_* -.IP "\fIlh_source_debian\fR(1)" 4 -.IP "\fIlh_source_debian-live\fR(1)" 4 -.IP "\fIlh_source_disk\fR(1)" 4 -.IP "\fIlh_source_iso\fR(1)" 4 -.IP "\fIlh_source_md5sum\fR(1)" 4 -.IP "\fIlh_source_net\fR(1)" 4 -.IP "\fIlh_source_tar\fR(1)" 4 -.IP "\fIlh_source_usb-hdd\fR(1)" 4 -.IP "\fIlh_testroot\fR(1)" 4 -ensure that a system is built as root -.PP -If a program's name starts with "lh_", and the program is not on the above list, -then it is not part of the live\-helper package, but it should still work like -the other programs described on this page. - -.SH LIVE\-HELPER CONFIG FILES -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). +\fBlh \fR\fICOMMAND\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] .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. +or .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. +\fBlh_\fR\fICOMMAND\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] + +.SH DESCRIPTION +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. .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. +The \fICOMMAND\fR is a name of a live\-helper command (see below). .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 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>. -.SH SHARED LIVE\-HELPER OPTIONS +.SH OPTIONS +.SS Shared live\-helper options The following command line options are supported by all live\-helper programs. .IP "\fB-h, --help\fR" 4 display help and exit. @@ -140,11 +26,8 @@ display help and exit. show usage and exit. .IP "\fB-v, --version\fR" 4 output version information and exit. - -.SH COMMON LIVE\-HELPER OPTIONS -The following command line options are supported by some live\-helper programs. -See the man page of each program for a complete explanation of what each option -does. +.SS Common live\-helper options +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. .IP "\fB\-\-breakpoints\fR" 4 run with breakpoints. .IP "\fB\-\-conffile\fR" 4 @@ -157,23 +40,194 @@ force helper execution, even if stage file exists. be quiet. .IP "\fB\-\-verbose\fR" 4 be verbose. +.PP +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. -.SH SEE ALSO -\fIlive\-initramfs\fR(7) +.SH LIVE\-HELPER COMMANDS +We divide live\-helper into high level ("porcelain") commands and low level ("plumbing") commands. .PP -\fIlive\-initscripts\fR(7) +Here is the complete list of all available live\-helper commands. See their man +pages for additional documentation. + +.SH HIGH\-LEVEL COMMANDS (PORCELAIN) +We separate the porcelain commands into the main commands and some ancillary user utilities. +.SS Main porcelain commands +.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 +.SS Ancillary Commands +.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 + +.SH LOW-LEVEL COMMANDS (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. .PP -\fIlive\-webhelper\fR(7) +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. +.SS Bootstrap commands +.IP "\fBlh_bootstrap_cache\fR(1)" 4 +cache bootstrap stage +.IP "\fBlh_bootstrap_cdebootstrap\fR(1)" 4 +bootstrap a Debian system with cdebootstrap(1) +.IP "\fBlh_bootstrap_copy\fR(1)" 4 +bootstrap by copying the host system +.IP "\fBlh_bootstrap_debootstrap\fR(1)" 4 +bootstrap a Debian system with debootstrap(8) +.SS Chroot commands +.IP "\fBlh_chroot_apt\fR(1)" 4 +manage /etc/apt/apt.conf +.IP "\fBlh_chroot_cache\fR(1)" 4 +cache chroot stage +.IP "\fBlh_chroot_debianchroot\fR(1)" 4 +manage /etc/debian_chroot +.IP "\fBlh_chroot_devpts\fR(1)" 4 +mount /dev/pts +.IP "\fBlh_chroot_dpkg\fR(1)" 4 +manage /sbin/dpkg +.IP "\fBlh_chroot_hacks\fR(1)" 4 +execute hacks in chroot +.IP "\fBlh_chroot_hooks\fR(1)" 4 +execute hooks in chroot +.IP "\fBlh_chroot_hostname\fR(1)" 4 +manage /bin/hostname +.IP "\fBlh_chroot_hosts\fR(1)" 4 +manage /etc/hosts +.IP "\fBlh_chroot_install-packages\fR(1)" 4 +install queued packages into chroot +.IP "\fBlh_chroot_interactive\fR(1)" 4 +make build interactive +.IP "\fBlh_chroot_linux-image\fR(1)" 4 +manage /etc/kernel-img.conf +.IP "\fBlh_chroot_local-hooks\fR(1)" 4 +execute local hooks in chroot +.IP "\fBlh_chroot_local-includes\fR(1)" 4 +copy local files into chroot +.IP "\fBlh_chroot_localization\fR(1)" 4 +install localization packages into chroot +.IP "\fBlh_chroot_local-packages\fR(1)" 4 +queue install of local packages into chroot +.IP "\fBlh_chroot_local-patches\fR(1)" 4 +apply local patches against chroot +.IP "\fBlh_chroot_local-preseed\fR(1)" 4 +use debconf local preseeding file +.IP "\fBlh_chroot_packages\fR(1)" 4 +queue install of packages into chroot +.IP "\fBlh_chroot_packageslists\fR(1)" 4 +queue install of packages lists into chroot +.IP "\fBlh_chroot_preseed\fR(1)" 4 +use debconf preseeding file +.IP "\fBlh_chroot_proc\fR(1)" 4 +mount /proc +.IP "\fBlh_chroot_resolv\fR(1)" 4 +manage /etc/resolv.conf +.IP "\fBlh_chroot_selinuxfs\fR(1)" 4 +mount /selinux +.IP "\fBlh_chroot_sources\fR(1)" 4 +manage /etc/apt/sources.list +.IP "\fBlh_chroot_symlinks\fR(1)" 4 +convert symlinks +.IP "\fBlh_chroot_sysfs\fR(1)" 4 +mount /sys +.IP "\fBlh_chroot_sysvinit\fR(1)" 4 +configure sysvinit +.IP "\fBlh_chroot_sysv-rc\fR(1)" 4 +manage /usr/sbin/policy-rc.d +.IP "\fBlh_chroot_tasks\fR(1)" 4 +install tasks into chroot +.SS Binary commands +.IP "\fBlh_binary_chroot\fR(1)" 4 +copy chroot into chroot +.IP "\fBlh_binary_debian-installer\fR(1)" 4 +install debian-installer into binary +.IP "\fBlh_binary_disk\fR(1)" 4 +install disk information into binary +.IP "\fBlh_binary_encryption\fR(1)" 4 +encrypts rootfs +.IP "\fBlh_binary_grub\fR(1)" 4 +installs grub into binary +.IP "\fBlh_binary_includes\fR(1)" 4 +copy files into binary +.IP "\fBlh_binary_iso\fR(1)" 4 +build iso binary image +.IP "\fBlh_binary_linux-image\fR(1)" 4 +install linux-image into binary +.IP "\fBlh_binary_local-hooks\fR(1)" 4 +execute local hooks in binary +.IP "\fBlh_binary_local-includes\fR(1)" 4 +copy files into binary +.IP "\fBlh_binary_local-packageslists\fR(1)" 4 +install local packages lists into binary +.IP "\fBlh_binary_manifest\fR(1)" 4 +create manifest +.IP "\fBlh_binary_md5sum\fR(1)" 4 +create binary md5sums +.IP "\fBlh_binary_memtest\fR(1)" 4 +installs a memtest into binary +.IP "\fBlh_binary_net\fR(1)" 4 +build netboot binary image +.IP "\fBlh_binary_rootfs\fR(1)" 4 +build rootfs image +.IP "\fBlh_binary_silo\fR(1)" 4 +installs silo into binary +.IP "\fBlh_binary_syslinux\fR(1)" 4 +installs syslinux into binary +.IP "\fBlh_binary_tar\fR(1)" 4 +build harddisk binary image +.IP "\fBlh_binary_usb-hdd\fR(1)" 4 +build binary usb-hdd image +.IP "\fBlh_binary_yaboot\fR(1)" 4 +installs yaboot into binary +.SS Source commands +.IP "\fBlh_source_debian\fR(1)" 4 +download sources +.IP "\fBlh_source_debian-live\fR(1)" 4 +copy debian-live config into source +.IP "\fBlh_source_disk\fR(1)" 4 +install disk information into source +.IP "\fBlh_source_iso\fR(1)" 4 +build iso source image +.IP "\fBlh_source_md5sum\fR(1)" 4 +create source md5sum +.IP "\fBlh_source_net\fR(1)" 4 +build source net image +.IP "\fBlh_source_tar\fR(1)" 4 +build source tarball +.IP "\fBlh_source_usb-hdd\fR(1)" 4 +build source usb-hdd image -.SH BUGS -Report bugs against live\-helper -<\fIhttp://packages.qa.debian.org/live\-helper\fR>. +.SH CONFIG FILES +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. + +.SH SEE ALSO +\fIlive\-initramfs\fR(7) .SH HOMEPAGE -More information about the Debian Live project can be found at -<\fIhttp://debian\-live.alioth.debian.org/\fR> and -<\fIhttp://wiki.debian.org/DebianLive/\fR>. +More information about live\-helper and the Debian Live project can be found in the homepage at <\fIhttp://debian\-live.alioth.debian.org/\fR> and in the manual at <\fIhttp://live.debian.net/manual/\fR>. + +.SH BUGS +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>. .SH AUTHOR -live\-helper was written by Daniel Baumann <\fIdaniel@debian.org\fR> for the -Debian project. +live\-helper was written by Daniel Baumann <\fIdaniel@debian.org\fR> for the Debian project. |