lb-chroot-hooks.1 3 KB
Newer Older
1
.\" live-build(7) - System Build Scripts
2
.\" Copyright (C) 2006-2014 Daniel Baumann <mail@daniel-baumann.ch>
3
4
5
6
7
8
.\"
.\" This program comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
.\" This is free software, and you are welcome to redistribute it
.\" under certain conditions; see COPYING for details.
.\"
.\"
9
.TH LIVE\-BUILD 1 2014\-04\-28 4.0~alpha36-1 "Live Systems Project"
10
11
12
13
14

.SH NAME
\fBlive\-build\fR \- Live System Build Components

.SH SYNOPSIS
15
\fBlb chroot\-hooks\fR [\-\-verbose]
16
.PP
17
\fBlb chroot\-hooks\fR [\-\-help]
18
.br
19
\fBlb chroot\-hooks\fR [\-\-version]
20
21
22
23
.
.SH DESCRIPTION
live\-build contains the components to build a live system from a configuration directory.
.PP
24
The \fBlb chroot\-hooks\fR command executes hook files after the chroot stage.
25
26

.SH SPECIFICATION
27
\fBlb chroot\-hooks\fR executes any hook files found in the \fBconfig/hooks\fR directory within the configuration directory.
28
.PP
29
Hook files do not require to have a specific owner nor specific permissions. They are marked executable by \fBlb chroot\-hooks\fR automatically when they are executed.
30
31
32
33
34
.PP
Hook files must either have the suffix \fB*.hook\fR or \fB*.hook.chroot\fR.
.PP
Hook files with the suffix \fB*.hook\fR are executed first, hook files with the suffix \fB*.hook.chroot\fR are executed second.
.PP
35
Hook files are executed in alphanumberical order by \fBlb chroot\-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.
36
.PP
37
Hook files are copied into the \fBchroot/live-build\fR directory by \fBlb chroot\-hooks\fR. They are executed from within the chroot directory (chrooted) and can read the configuration directory in \fB/live-build/config\fR within the chroot directory.
38
39

.SH OPTIONS
40
.IP "\fB\-\-verbose\fR" 4
41
sets verbose option (default: False).
42
.IP "\fB\-h, \-\-help\fR" 4
43
show help message and exit.
44
.IP "\fB\-\-version\fR" 4
45
46
47
show program's version number and exit.

.SH FILES
48
49
50
51
52
53
54
55
56
57
.IP "\fBconfig/hooks/*.hook\fR:" 4
generic hook files.
.IP "\fBconfig/hooks/*.hook.chroot\fR:" 4
hook files specific for the chroot stage.
.IP "\fBchroot\fR:" 4
directory in which the hook files are executed.
.IP "\fBchroot/live-build/config\fR:" 4
bind mounted configuration directory within the chroot directory to be read by hook files.
.IP "\fBchroot/live-build\fR:" 4
directory in which hook files are copied.
58
59

.SH SEE ALSO
60
61
62
.IP "\fIlb\-bootstrap\-hooks\fR(1)" 4
.IP "\fIlb\-binary\-hooks\fR(1)" 4
.IP "\fIlb\-source\-hooks\fR(1)" 4
63
64
65
66
67
68
69
70
71

.SH HOMEPAGE
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>.

.SH BUGS
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>.

.SH AUTHOR
live\-build was written by Daniel Baumann <\fImail@daniel-baumann.ch\fR>.