The \fBlb binary_hooks\fR command executes hook files after the binary stage.
.SHSPECIFICATION
\fBlb binary_hooks\fR executes any hook files found in the \fBconfig/hooks\fR directory within the configuration directory.
.PP
Hook files do not require to have a specific owner nor specific permissions. They are marked executable by \fBlb binary_hooks\fR automatically when they are executed.
.PP
Hook files must either have the suffix \fB*.hook\fR or \fB*.hook.binary\fR.
.PP
Hook files with the suffix \fB*.hook\fR are executed first, hook files with the suffix \fB*.hook.binary\fR are executed second.
.PP
Hook files are executed in alphanumberical order by \fBlb binary_hooks\fR. 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.
.PP
Hook files are copied into the \fBbinary/live-build\fR directory by \fBlb binary_hoooks\fR. They are executed from within the binary directory and can read the configuration directory in \fBlive-build/config\fR within the binary directory.
.PP
\fBWarning:\fR hook files are not executed within a chroot but within the context of the host system in the binary directory. They have root privileges and access to the all host system ressources (devices, filesystems, network, etc.).
More information about live\-build and the Live Systems project can be found on the homepage at <\fIhttp://live-systems.org/\fR> and in the manual at <\fIhttp://live-systems.org/manual/\fR>.
.SHBUGS
Bugs can be reported by submitting a bugreport for the live\-build package in the Bug Tracking System at <\fIhttp://bugs.debian.org/\fR> or by writing a mail to the Live Systems mailing list at <\fIdebian\-live@lists.debian.org\fR>.
.SHAUTHOR
live\-build was written by Daniel Baumann <\fImail@daniel-baumann.ch\fR>.