Scroll to navigation

LIVE-BUILD(7) Projet Live Systems LIVE-BUILD(7)

NOM

live-build - la suite d'outils live systems

SYNOPSIS

lb COMMAND [-h|--help] [-u|--usage] [-v|--version] [--breakpoints] [--conffile] [--debug] [--force] [--quiet] [--verbose]

DESCRIPTION

live-build est un ensemble de scripts pour construire des images de système live. L'idée derrière live-build est une suite d'outils qui utilise un répertoire de configuration pour automatiser complètement et personnaliser tous les aspects de la construction d'une image Live.

La COMMANDE est un nom d'une commande live-build (voir ci-dessous).

More documentation about how to use live-build is available in the individual manpages for each helper and in the manual at <https://debian-live.alioth.debian.org/manual/>.

OPTIONS

Options live-build partagées

Les options en ligne de commande suivantes sont supportées par l'ensemble des programmes live-build.
-h, --help
affiche l'aide et quitte
-u, --usage
affiche l'utilisation et quitte
-v, --version
affiche les informations de version et quitte

Options live-build communes

Les options de lignes de commandes suivantes sont supportées par la plupart des programmes live-build. Voir la page de manuel de chaque programme pour une explication complète de ce que chaque option fait.
--breakpoints
lance avec des points d'arrêt (breakpoints).
--conffile
utilise un fichier de configuration personnalisé.
--debug
affiche des informations de déboguage.
--force
force l'exécution d'un assistant, même si le fichier de stage existe.
--quiet
soit discret.
--verbose
soit verbeux.

COMMANDES LIVE-BUILD

Nous divisons live-build entre des commandes de haut-niveau ("porcelaine") et de bas-niveau ("plomberie").

Voici une liste complète de toutes les commandes live-build disponibles. Consultez leurs pages de manuel pour obtenir de la documentation additionnelle.

COMMANDES HAUT-NIVEAU (PORCELAINE)

Nous séparons les commandes porcelaine en commandes principales et en utilitaires utilisateur auxiliaires.

Commandes porcelaine principales

lb config(1)
creates configuration for live-build
lb bootstrap(1)
executes the first build stage, creating (bootstraping) a basic Debian root filesystem
lb chroot(1)
executes the second build stage, building the live OS filesystem
lb installer(1)
executes the third build stage, obtaining installer components (optional)
lb binary(1)
executes the fourth build stage, generating a binary image
lb source(1)
executes the fifth build stage, generating a source image (optional)
lb clean(1)
cleans up system build directories

Commandes auxiliaires

lb(1)
generic live-build script execution wrapper
lb build(1)
alias for all build stages

LOW-LEVEL COMMANDS (PLUMBING) - BUILD STAGE COMPONENTS

Le travail réel de live-build est implémenté dans les commandes bas-niveau, appelées plomberie. Elles ne sont pas supposées être utilisées par les utilisateurs finaux, ils devraient rester avec les porcelaines puisqu'elles s'assurent que toutes les différentes commandes de plomberie sont exécutées dans le bon ordre. Toutefois, si vous prévoyez de ré-utiliser les commandes live-build dans vos propres scripts, alors les plomberies pourraient vous intéresser.

Notez que l'interface (ensemble des options et des semantiques) de ces commandes bas-niveau sont pensées pour être beaucoup plus stables que les commandes de niveau Porcelaine. D'un autre côté, l'interface des commandes Porcelaine sont sujettes à changement afin d'améliorer l'expérience de l'utilisateur final.

Bootstrap stage specific commands

lb bootstrap_archives(1)
applies apt archive configuration
lb bootstrap_cache(1)
in save mode, saves to cache a copy of the generated bootstrap directory, and in restore mode, restores from cache a previously generated copy
lb bootstrap_debootstrap(1)
creates (bootstrap) a basic Debian root filesystem using debootstrap(8)

Chroot stage specific commands

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).
lb chroot_cache(1)
in save mode, saves to cache a copy of the chroot directory, and in restore mode, restores from cache a previously generated copy
lb chroot_firmware(1)
compiles a list of firmware packages to be installed in the live OS root filesystem
lb chroot_hacks(1)
executes local hacks against the live OS root filesystem, if any are provided
lb chroot_hooks(1)
executes local hooks against the live OS root filesystem, if any are provided
lb chroot_includes(1)
copies a set of local files from the config directory into the live OS root filesystem, if any are provided
lb chroot_install-packages(1)
installs into the live OS root filesystem any packages listed in local package lists
lb chroot_interactive(1)
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)
lb chroot_linux-image(1)
compiles a list of kernel images to be installed in the live OS root filesystem
lb chroot_live-packages(1)
installs a set of live system specific packages to the live OS root filesystem
lb chroot_package-lists(1)
compiles a list of packages provided in the user´ local config to be installed in the live OS root filesystem
lb chroot_preseed(1)
installs pre-configured answers to certain install prompts into the live OS root filesystem

Installer stage specific commands

lb installer_debian-installer(1)
obtains and sets up Debian installer(d-i) components
lb installer_preseed(1)
installs pre-configured answers to certain install prompts

Binary stage specific commands

lb binary_checksums(1)
creates checksums (md5, sha1, and/or sha256) for live image content
lb binary_chroot(1)
duplicates the chroot directory, to place a copy of what whould 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
lb binary_disk(1)
creates disk information files to be added to live image
lb binary_grub(1)
installs grub into live image to provide image boot capability
lb binary_grub2(1)
installs grub2 into live image to provide image boot capability
lb binary_hdd(1)
compiles the final live image into an hdd image file
lb binary_hooks(1)
executes local hooks against the live image, if any are provided
lb binary_includes(1)
copies a set of local files from the config directory into the live image, if any are provided
lb binary_iso(1)
compiles the final live image into an iso file
lb binary_linux-image(1)
copies the linux-image into the live image
lb binary_loadlin(1)
bundles a copy of loadlin into the live image
lb binary_manifest(1)
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
lb binary_memtest(1)
bundles a copy of memtest into the live image
lb binary_netboot(1)
compiles the final live image into a netboot tar archive
lb binary_package-lists(1)
processes local lists of packages to obtain and bundle into image (from which they could later be installed if not already)
lb binary_rootfs(1)
wraps up the completed live OS root filesystem into a virtual file system image
lb binary_syslinux(1)
installs syslinux into live image to provide image boot capability
lb binary_tar(1)
compiles the final live image into a tar archive
lb binary_win32-loader(1)
bundles a copy of win32-loader into the live image and creates an autorun.inf file
lb binary_zsync(1)
builds zsync control files

Source stage specific commands

lb source_checksums(1)
creates checksums (md5, sha1, and/or sha256) for source image content
lb source_debian(1)
downloads source packages for bundling into source image
lb source_disk(1)
creates disk information files to be added to source image
lb source_hdd(1)
compiles the final source image into an hdd image file
lb source_hooks(1)
executes local hooks against the source image, if any are provided
lb source_iso(1)
compiles the final source image into an iso file
lb source_live(1)
copies live-build config into source
lb source_tar(1)
compiles the final source image into a tar archive

LOW-LEVEL COMMANDS (PLUMBING) - CHROOT PREP COMPONENTS

The notes above under the section regarding build-stage specific low-level plumbing commands also apply here.

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.

lb chroot_apt(1)
manages apt configuration; in apply mode it applies configuration for use during build process, and in remove mode removes that configuration
lb chroot_archives(1)
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
lb chroot_debianchroot(1)
manages a /etc/debian_chroot file
lb chroot_devpts(1)
manages mounting of /dev/pts
lb chroot_dpkg(1)
manages dpkg; in apply mode disabling things like the start-stop-daemon, and in remove mode enabling them again
lb chroot_hostname(1)
manages the hostname configuration
lb chroot_hosts(1)
manages the /etc/hosts file
lb chroot_proc(1)
manages mounting of /proc
lb chroot_resolv(1)
manages configuration of the /etc/resolv.conf file
lb chroot_selinuxfs(1)
manages mounting of /sys/fs/selinux
lb chroot_sysfs(1)
manages mounting of /sys
lb chroot_sysv-rc(1)
manages the /usr/sbin/policy-rc.d file
lb chroot_tmpfs(1)
manages configuration of dpkg to use a tmpfs filesystem
lb chroot_upstart(1)
manages use of upstart /sbin/initctl program; in apply mode blocking execution through a dpkg diversion, and in remove mode enabling execution again

FICHIERS DE CONFIGURATION

Plusieurs commandes live-build utilisent des fichiers dans le répertoire config/ pour contrôler ce qu'elles font. En plus du config/common commun, qui est utilisé par toutes les commandes live-build, plusieurs fichiers additionels peuvent être utilisés pour configurer le comportement de commandes live-build spécifiques. Ces fichiers sont typiquement nommés config/stage ou config/stage_assistant (où "stage" est évidemment remplacé par le nom du stage auquel il appartient, "assistant" par le nom de l'assistant).

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.

Notez que live-build respectera les variables d'environment présentes dans le contexte du shell lancé. Si les variables peuvent être lues depuis les fichiers de configuration, alors elles prennent le pas sur les variables d'environement, et si les options en ligne de commande sont utilisées, elles sont prioritaires sur les fichiers de configuration. Si pour une variable donnée, aucune valeur ne peut être trouvée et donc, est non-paramétrèe, live-build la paramètrera automatiquement à la valeur par défaut.

Dans de rares cas, vous pourriez vouloir avoir différentes versions de ces fichiers pour différentes architectures ou distributions. Si des fichiers nommés config/stage.arch ou config/stage_assistant.arch, et config/stage.dist ou config/stage_assistant.dist existent, où "arch" est équivalent à la sortie de "dpkg --print-architecture" et "dist" équivalent au nom de code de la distribution cible, alors ils seront utilisés en priorité aux autres fichier plus généraux.

Tous les fichiers de configuration sont des scripts shell qui sont sourcés par un programme live-build. Ceci signifie qu'ils doivent suivre la syntaxe de shell normale. Vous pouvez également mettre des commentaires dans ces fichiers; les lignes commençant par des "#" sont ignorées.

FICHIERS

/etc/live/build.conf
/etc/live/build/*

VOIR AUSSI

live-boot(7)

live-config(7)

Ce programme est une partie de live-build.

PAGE D'ACCUEIL

More information about live-build and the Live Systems project can be found on the homepage at <https://debian-live.alioth.debian.org/>.

BOGUES

Les bogues peuvent être signalés en soumettant un rapport de bogue pour le paquet live-build dans le BTS à <http://bugs.debian.org/> ou par l'écriture d'un courriel à la liste de diffusion Live Systems à <debian-live@lists.debian.org>.

AUTEUR

live-images a été écrit par Daniel Baumann <mail@daniel-baumann.ch>.
2018-10-01 1:20180925~bpo9+1