diff options
author | Lyndon Brown <jnqnfe@gmail.com> | 2020-04-01 05:22:39 +0100 |
---|---|---|
committer | Raphaƫl Hertzog <hertzog@debian.org> | 2020-04-23 09:38:02 +0000 |
commit | e22bd27170bba862239c41ebdd9a6f23ef865caf (patch) | |
tree | ef5e94ab59d716835f21a8e706ef80bc909e3dcc /manpages/en/live-build.7 | |
parent | fc88358b29bc353b15879d611cc25fc74ae91442 (diff) | |
download | vyos-live-build-e22bd27170bba862239c41ebdd9a6f23ef865caf.tar.gz vyos-live-build-e22bd27170bba862239c41ebdd9a6f23ef865caf.zip |
add bulk chroot preparation script execution helper
rather than explicitly running one helper after another in the major
build stages, or by hand (e.g. while testing things during development),
they can be run in bulk via this new helper. it essentially just takes a
list of helpers to run and runs them one by one.
it supports running all helpers except chroot_archives because that one
has different parameter requirements to the rest and supporting it would
make things messier.
helper scripts can either be named by their full script name or without
the 'chroot_' prefix for brevity. you can also just specify 'all' to
refer to all helpers (except chroot_archives, per above).
it automatically reverses the order of the list when run in remove mode.
Gbp-Dch: Short
Diffstat (limited to 'manpages/en/live-build.7')
-rw-r--r-- | manpages/en/live-build.7 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/manpages/en/live-build.7 b/manpages/en/live-build.7 index 4c3f81f66..af6e62696 100644 --- a/manpages/en/live-build.7 +++ b/manpages/en/live-build.7 @@ -196,6 +196,10 @@ compiles the final source image into a tar archive 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\fR(1) command can be used to run these components in bulk. +.IP "\fBlb chroot_prep\fR(1)" 4 +a helper to run the below components in bulk, usable for all those that can be controlled with a single parameter of 'install' or 'remove' (thus excluding \fBlb chroot_archives\fR(1) and also \fBlb chroot_apt\fR(1) when run with 'install-binary'). 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). Any remaining parameters (i.e. options like --force) are passed along. The second can be simply 'all' in which case a default set of all (applicable) components are used. 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\fR(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\fR(1)" 4 |