LIVE-BUILD(1) Live Systems Project LIVE-BUILD(1)


live-build - Live System Build Components


lb source-hooks [--verbose] lb source-hooks [--help] lb source-hooks [--version]


live-build contains the components to build a live system from a con‐ figuration directory. The lb source-hooks command executes hook files after the source stage.


lb source-hooks executes any hook files found in the config/hooks directory within the configuration directory. Hook files do not require to have a specific owner nor specific permis‐ sions. They are marked executable by lb source-hooks automatically when they are executed. Hook files must either have the suffix *.hook or *.hook.source. Hook files with the suffix *.hook are executed first, hook files with the suffix *.hook.source are executed second. Hook files are executed in alphanumberical order by lb source-hooks. If one hook file depends on being run after another, best practise is to use number prefixes (nnnn, starting with 0001) to ensure the order of execution. Hook files are copied into the source/live-build directory by lb source-hooks. They are executed from within the source directory and can read the configuration directory in live-build/config within the source directory. Warning: hook files are not executed within a chroot but within the context of the host system in the source directory. They have root privileges and access to the all host system ressources (devices, filesystems, network, etc.).


--verbose sets verbose option (default: False). -h, --help show help message and exit. --version show program's version number and exit.


config/hooks/*.hook: generic hook files. config/hooks/*.hook.source: hook files specific for the source stage. source: directory in which the hook files are executed. source/live-build/config: bind mounted configuration directory within the source directory to be read by hook files. source/live-build: directory in which hook files are copied.


lb-bootstrap-hooks(1) lb-chroot-hooks(1) lb-binary-hooks(1)


More information about live-build and the Live Systems project can be found on the homepage at <> and in the manual at <>.


Bugs can be reported by submitting a bugreport for the live-build pack‐ age in the Bug Tracking System at <> or by writ‐ ing a mail to the Live Systems mailing list at <>.


live-build was written by Daniel Baumann <>. 4.0~alpha39-1 2014-07-24 LIVE-BUILD(1)