.\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH LIVE\-BUILD 7 2021\-04\-07 1:20210407 "Debian Live Project" .SH 名前 \fBlive\-build\fP \- the Debian Live tool suite .SH 概要 \fBlb\fP {\fB\-h\fP|\fB\-\-help\fP|\fB\-u\fP|\fB\-\-usage\fP|\fB\-v\fP|\fB\-\-version\fP} .PP \fBlb\fP \fICOMMAND\fP [\fIOPTIONS\fP] .SH 説明 live\-build は Live システムのイメージをビルドするためのスクリプト集です。live\-build の背景となる考え方は、設定ディレクトリを使って Live イメージのビルドに関するあらゆる面を完全に自動化、独自化するツール集ということです。 .PP \fIコマンド\fPは live\-build コマンドの名前です (以下参照)。 .PP More documentation about how to use live\-build is available in the individual manpages for each helper and in the manual at <\fIhttps://live\-team.pages.debian.net/live\-manual/\fP>. .SH オプション .SS "live\-build 共有オプション" 以下のコマンドラインオプションは全 live\-build プログラムでサポートされています。 .IP "\fB\-h, \-\-help\fP" 4 ヘルプを表示して終了します。 .IP "\fB\-u, \-\-usage\fP" 4 使用方法を表示して終了します。 .IP "\fB\-v, \-\-version\fP" 4 バージョン情報を表示して終了します。 .SS "live\-build 共通オプション" 以下のコマンドラインオプションはほとんどの live\-build プログラムでサポートされています。各オプションの完全な説明については各プログラムの man ページを見てください。 .IP \fB\-\-breakpoints\fP 4 ブレークポイントをたどります。 .IP \fB\-\-color\fP 4 enable color use in messages. .IP \fB\-\-debug\fP 4 デバッグ情報を表示します。 .IP \fB\-\-force\fP 4 段階ファイルが存在する場合でも強制的にヘルパーを実行します。 .IP \fB\-\-no\-color\fP 4 disable color use in messages. .IP \fB\-\-quiet\fP 4 出力するメッセージを少なくします。 .IP \fB\-\-verbose\fP 4 出力するメッセージを多くします。 .SH "LIVE\-BUILD コマンド" We divide live\-build into high level ("porcelain") commands, secondary major build stage ("porcelain") commands, and low level ("plumbing") commands. .PP 利用可能な全 live\-build コマンドの一覧です。詳しくはそれぞれの man ページを見てください。 .SH "高レベルコマンド (PORCELAIN)" 高レベルコマンドは主要コマンドといくらかの副次的なユーザ向けユーティリティに分けられています。 .SS 主要コマンド .IP "\fBlb config\fP(1)" 4 creates configuration for live\-build .IP "\fBlb build\fP(1)" 4 executes the build process (by executing all of the secondary level major build stages in sequence) .IP "\fBlb clean\fP(1)" 4 cleans up system build directories .SS 副次的なコマンド .IP \fBlb\fP(1) 4 generic live\-build script execution wrapper .SH "SECONDARY\-LEVEL BUILD COMMANDS (PORCELAIN)" The following are the commands that execute each major stage of the build process, in their necessary order of execution. Normally a user might just execute the higher level \fBlb build\fP(1) command rather than use these individually. .IP "\fBlb bootstrap\fP(1)" 4 executes the first build stage, creating (bootstraping) a basic Debian root filesystem .IP "\fBlb chroot\fP(1)" 4 executes the second build stage, building the live OS filesystem .IP "\fBlb installer\fP(1)" 4 executes the third build stage, obtaining installer components (optional) .IP "\fBlb binary\fP(1)" 4 executes the fourth build stage, generating the binary (live) image .IP "\fBlb source\fP(1)" 4 executes the fifth build stage, generating a corresponding source image (optional) .SH "LOW\-LEVEL COMMANDS (PLUMBING) \- BUILD STAGE COMPONENTS" 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, who 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. .PP この低レベルコマンドへのインターフェイス (オプション群やセマンティクス) は高レベルの主要コマンドよりもはるかに安定していることが求められることに注意してください。それに対して高レベルの主要コマンドへのインターフェイスは、エンドユーザの使い勝手改善のために変更される対象となります。 .SS "Bootstrap stage specific commands" .IP "\fBlb bootstrap_archives\fP(1)" 4 applies apt archive configuration .IP "\fBlb bootstrap_cache\fP(1)" 4 in save mode, saves to cache a copy of the generated bootstrap directory, and in restore mode, restores from cache a previously generated copy .IP "\fBlb bootstrap_debootstrap\fP(1)" 4 creates (bootstraps) a basic Debian root filesystem using debootstrap(8) .SS "Chroot stage specific commands" .PP Note: The following chroot_ prefixed commands are used in building the live OS filesystem. Another set of similarly prefixed files are listed separately (see further down). .IP "\fBlb chroot_cache\fP(1)" 4 in save mode, saves to cache a copy of the chroot directory, and in restore mode, restores from cache a previously generated copy .IP "\fBlb chroot_firmware\fP(1)" 4 compiles a list of firmware packages to be installed in the live OS root filesystem .IP "\fBlb chroot_hacks\fP(1)" 4 executes local hacks against the live OS root filesystem, if any are provided .IP "\fBlb chroot_hooks\fP(1)" 4 executes local hooks against the live OS root filesystem, if any are provided .IP "\fBlb chroot_includes\fP(1)" 4 copies a set of local files from the config directory into the live OS root filesystem, if any are provided .IP "\fBlb chroot_install\-packages\fP(1)" 4 installs into the live OS root filesystem any packages listed in local package lists .IP "\fBlb chroot_interactive\fP(1)" 4 pauses the build process and starts an interactive shell from the live OS root filesystem, providing an oportunity for manual modifications or testing; note that this is (currently) usually executed with several chroot prep modifications applied (see description of these further down) .IP "\fBlb chroot_linux\-image\fP(1)" 4 compiles a list of kernel images to be installed in the live OS root filesystem .IP "\fBlb chroot_package\-lists\fP(1)" 4 compiles a list of packages provided in the user\' local config to be installed in the live OS root filesystem .IP "\fBlb chroot_preseed\fP(1)" 4 installs pre\-configured answers to certain install prompts into the live OS root filesystem .SS "Installer stage specific commands" .IP "\fBlb installer_debian\-installer\fP(1)" 4 obtains and sets up Debian installer (d\-i) components .IP "\fBlb installer_preseed\fP(1)" 4 installs pre\-configured answers to certain install prompts .SS "Binary stage specific commands" .IP "\fBlb binary_checksums\fP(1)" 4 creates checksums (md5, sha1, and/or sha256) for live image content .IP "\fBlb binary_chroot\fP(1)" 4 duplicates the chroot directory, to place a copy of what would be the completed live OS root filesystem to one side, allowing the original to continue to be used in executing certain parts of the remainder of the build process .IP "\fBlb binary_disk\fP(1)" 4 creates disk information files to be added to live image .IP "\fBlb binary_grub_cfg\fP(1)" 4 creates the config for grub\-pc and grub\-efi, and also enables loopback support (which depends upon it) in the live image .IP "\fBlb binary_grub\-efi\fP(1)" 4 installs grub\-efi (grub2 for EFI) into live image to provide image boot capability. It relies upon \fBlb binary_grub_cfg\fP to create the config. .IP "\fBlb binary_grub\-legacy\fP(1)" 4 installs grub into live image to provide image boot capability .IP "\fBlb binary_grub\-pc\fP(1)" 4 installs grub\-pc (grub2 for BIOS) into live image to provide image boot capability. It relies upon \fBlb binary_grub_cfg\fP to create the config. .IP "\fBlb binary_hdd\fP(1)" 4 compiles the final live image into an HDD image file .IP "\fBlb binary_hooks\fP(1)" 4 executes local hooks against the live image, if any are provided .IP "\fBlb binary_includes\fP(1)" 4 copies a set of local files from the config directory into the live image, if any are provided .IP "\fBlb binary_iso\fP(1)" 4 compiles the final live image into an ISO file .IP "\fBlb binary_linux\-image\fP(1)" 4 copies the linux\-image into the live image .IP "\fBlb binary_loadlin\fP(1)" 4 bundles a copy of loadlin into the live image .IP "\fBlb binary_manifest\fP(1)" 4 creates manifest of packages installed into live OS filesystem, and list of packages to be excluded by a persistence mechanism installing the live OS to disk .IP "\fBlb binary_memtest\fP(1)" 4 bundles a copy of memtest into the live image .IP "\fBlb binary_netboot\fP(1)" 4 compiles the final live image into a netboot tar archive .IP "\fBlb binary_onie\fP(1)" 4 installs onie into the live image .IP "\fBlb binary_package\-lists\fP(1)" 4 processes local lists of packages to obtain and bundle into image (from which they could later be installed if not already) .IP "\fBlb binary_rootfs\fP(1)" 4 wraps up the completed live OS root filesystem into a virtual file system image .IP "\fBlb binary_syslinux\fP(1)" 4 installs syslinux into live image to provide image boot capability .IP "\fBlb binary_tar\fP(1)" 4 compiles the final live image into a tar archive .IP "\fBlb binary_win32\-loader\fP(1)" 4 bundles a copy of win32\-loader into the live image and creates an autorun.inf file .IP "\fBlb binary_zsync\fP(1)" 4 builds zsync control files .SS "Source stage specific commands" .IP "\fBlb source_checksums\fP(1)" 4 creates checksums (md5, sha1, and/or sha256) for source image content .IP "\fBlb source_debian\fP(1)" 4 downloads source packages for bundling into source image .IP "\fBlb source_disk\fP(1)" 4 creates disk information files to be added to source image .IP "\fBlb source_hdd\fP(1)" 4 compiles the final source image into an HDD image file .IP "\fBlb source_hooks\fP(1)" 4 executes local hooks against the source image, if any are provided .IP "\fBlb source_iso\fP(1)" 4 compiles the final source image into an ISO file .IP "\fBlb source_live\fP(1)" 4 copies live\-build config into source .IP "\fBlb source_tar\fP(1)" 4 compiles the final source image into a tar archive .SH "LOW\-LEVEL COMMANDS (PLUMBING) \- CHROOT PREP COMPONENTS" The notes above under the section regarding build\-stage specific low\-level plumbing commands also apply here. .PP The following chroot_ prefixed commands are used throughout the various primary stages of the build process to apply and remove modifications to a chroot root filesystem. Generally these are used to apply modification that setup the chroot for use (execution of programs within it) during the build process, and later to remove those modification, unmounting things that were mounted, and making the chroot suitable for use as the root filesystem of the live OS to be bundled into the live image. .PP Note that the \fBlb chroot_prep\fP(1) command can be used to run these components in bulk. .IP "\fBlb chroot_prep\fP(1)" 4 a helper to run the below components in bulk. The first parameter it takes is the execution mode \- install or remove \- to pass along. The second parameter is the set of helpers to run (they can be space or comma separated; remember to quote if space separated). Following this one or more of the special parameters 'mode\-archives\-chroot', 'mode\-archives\-binary', \&'mode\-archives\-source' and 'mode\-apt\-install\-binary' can optionally be used, to select the 'pass' parameter for \fBlb chroot_archives\fP(1) in the case of the first three (required if 'archives' is one of the helpers to be run), and to run \fBlb chroot_apt\fP(1) in 'install\-binary' mode in the last case. Any remaining parameters (i.e. options like \-\-force) are passed along to all scripts run. The second parameter can be simply 'all' in which case a default set of all components are used, or 'all\-except\-archives' which differs in skipping \fBlb chroot_archives\fP(1). Components can be specified without their filename 'chroot_' prefix for brevity. In remove mode the list of components are run in reverse order, so no need to provide them in reverse order yourself. .IP "\fBlb chroot_apt\fP(1)" 4 manages apt configuration; in apply mode it applies configuration for use during build process, and in remove mode removes that configuration .IP "\fBlb chroot_archives\fP(1)" 4 manages apt archive source lists; in apply mode it applies source list configurations suitable for use of the chroot in the build process, and in remove mode replaces that with a configuration suitable for the final live OS .IP "\fBlb chroot_debianchroot\fP(1)" 4 manages a /etc/debian_chroot file .IP "\fBlb chroot_devpts\fP(1)" 4 manages mounting of /dev/pts .IP "\fBlb chroot_dpkg\fP(1)" 4 manages dpkg; in apply mode disabling things like the start\-stop\-daemon, and in remove mode enabling them again .IP "\fBlb chroot_hostname\fP(1)" 4 manages the hostname configuration .IP "\fBlb chroot_hosts\fP(1)" 4 manages the /etc/hosts file .IP "\fBlb chroot_proc\fP(1)" 4 manages mounting of /proc .IP "\fBlb chroot_resolv\fP(1)" 4 manages configuration of the /etc/resolv.conf file .IP "\fBlb chroot_selinuxfs\fP(1)" 4 manages mounting of /sys/fs/selinux .IP "\fBlb chroot_sysfs\fP(1)" 4 manages mounting of /sys .IP "\fBlb chroot_sysv\-rc\fP(1)" 4 manages the /usr/sbin/policy\-rc.d file .IP "\fBlb chroot_tmpfs\fP(1)" 4 manages configuration of dpkg to use a tmpfs filesystem .SH 設定ファイル Many live\-build commands make use of files in the \fIconfig/\fP directory to control what they do. Besides the common \fIconfig/common\fP, 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 (where "stage" of course, is replaced with the name of the stage that they belong to). .PP live\-build は実行中のシェルに存在する環境変数を尊重することに注意してください。変数が設定ファイルから読み取れる場合にはそれが環境変数より優先され、コマンドラインオプションで指定された場合にはそれが設定ファイルの値より優先されます。ある変数が見つからない、つまり値がセットされていない場合は live\-build が自動的にデフォルト値をセットします。 .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 and config/stage.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 設定ファイルは全て、live\-build プログラムにより作成されたシェルスクリプトです。それはつまり、通常のシェル構文に従う必要があるということです。また、設定ファイルにはコメントを残しておくこともできます。「#」で始まる行は無視されます。 .SH ファイル .IP \fB/etc/live/build.conf\fP 4 .IP \fB/etc/live/build/*\fP 4 .SH 関連項目 \fIlive\-boot\fP(7) .PP \fIlive\-config\fP(7) .PP このプログラムは live\-build の一部です。 .SH ホームページ More information about live\-build and the Debian Live project can be found on the homepage at <\fIhttps://wiki.debian.org/DebianLive\fP>. .SH バグ Bugs can be reported by submitting a bug report for the live\-build package in the Bug Tracking System at <\fIhttp://bugs.debian.org/\fP> or by writing a mail to the Debian Live mailing list at <\fIdebian\-live@lists.debian.org\fP>. .SH 作者 live\-build was originally written by Daniel Baumann <\fImail@daniel\-baumann.ch\fP>. Since 2016 development has been continued by the Debian Live team.