aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-user-mode-linux.1
blob: f27a368c01001a977a3025e1a5d369530d558b97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
.TH "pbuilder\-user\-mode\-linux" 1 "2005 Jun 12" "Debian" "pbuilder"
.SH NAME
pbuilder\-user\-mode\-linux \- personal package builder in UML
.SH SYNOPSIS
.BI "pbuilder\-user\-mode\-linux create [" "options" "]"
.PP
.BI "pbuilder\-user\-mode\-linux update [" "options" "]"
.PP
.BI "pbuilder\-user\-mode\-linux build [" "options" "] " ".dsc-file"
.PP
.BI "pbuilder\-user\-mode\-linux execute [" "options" "] " "script"
.PP
.BI "pbuilder-user\-mode\-linux login [" "options" "]"
.SH DESCRIPTION
Front end program to the 
.B "pbuilder"
suite of programs, used for creating and maintaining user-mode-linux environment
and building Debian package within the user-mode-linux virtual machine 
environment.

Unlike 
.B "pbuilder", 
.B "pbuilder\-user\-mode\-linux"
does not require root privilege to run.
It should be ran under a normal user.

.SH "OPTIONS"
.TP
.B "create"
Creates a user-mode-linux root image 
for the specified distribution using 
.B rootstrap
software

.TP
.B "update"
Updates the 
user-mode-linux root image
for the specified distribution.
Also, by specifying the 
.B "\-\-distribution"
option, it is possible to switch the distribution.
Specify a dummy distribution value 
even for custom apt config files.

.TP
.B "build"
Builds the package specified by
.I ".dsc-file"
within the user-mode-linux environment.

.TP
.B "login"
Invokes shell within UML.

.TP
.B "dumpconfig"
dumps configuration information about user-mode-linux, used for debugging.

.TP
.B "execute"
Invokes a command or script inside UML.
.B "execute"
will copy the specified file into the UML system,
and run it.

The remaining command-line arguments are passed on to the script.

.TP
.BI "\-\-uml\-image [" "UML image" "]"
Specify the UML image to use.

.TP
.BI "\-\-eth0 [" "uml option for eth0" "]"
Specify this option as parameter to UML.

Specify
.B "\-\-eth0=slirp,12345,/usr/bin/slirp\-fullbolt"
to use the slirp connection.

.TP
.BI "\-\-uml\-ip [" "IP inside UML" "]"
Specify this to set the IP inside UML.

.TP
.BI "\-\-uml\-netmask [" "netmask" "]"
The netmask.

.TP
.BI "\-\-uml\-network [" "network" "]"
The network address.

.TP
.BI "\-\-uml\-broadcast [" "broadcast" "]"
The broadcast address.

.TP
.BI "\-\-uml\-gateway [" "gateway" "]"
The gateway address.

.TP
.BI "\-\-mount\-tmpfs [" "yes" "]"
Specify whether to mount tmpfs inside UML chroot.

.TP
.BI "\-\-uml\-hostname [" "uml-host" "]"
The hostname inside uml.

.TP
.BI "\-\-distribution [" "sid" "]"
Specify the distribution.
see pbuilder.8

.TP
.BI "\-\-binary-arch"
Specify only to build binary-arch targets.
see pbuilder.8

.TP
.BI "\-\-timeout " "timeouttime"
Timeout build after specified time.
see pbuilder.8

.TP
.BI "\-\-configfile " "config file to read"
Makes pbuilder to read the config file inside UML.
pbuilder-user-mode-linux itself would be affected by the contents of the 
config file.

.TP
.BI "\-\-hookdir " "location of hooks"
Makes pbuilder use the specified hookdir inside UML.

.TP
.BI "\-\-aptconfdir " "apt configuretion directory"
Makes pbuilder to use specified apt configuration directory instead of 
other settings. See pbuilder.8

.TP 
.BI "\-\-override\-config"
Specify this option along with
.B \-\-distribution 
to switch distribution using 
.B "pbuilder\-user\-mode\-linux update"

.TP 
.BI "\-\-logfile " "logfilename"
Specify this option to make the output go to 
.I logfilename
instead of standard output.

.TP 
.BI "\-\-buildresult " "/dir/to/build/result"
The directory where build result is placed to

.TP
.BI "\-\-uml\-debugmode"
Enable tracing of shell scripts used by pbuilder\-user\-mode\-linux.

.TP 
.BI "\-\-bindmounts " "/dir/to/bind-mount"
Bind-mount the directory inside the chroot inside the user-mode-linux.

.TP
.BI "\-\-buildplace " "place-to-put-COW-file"
Specify the directory to place the COW file.
The user needs to be able to access that directory,
and the directory must exist.

.TP
.BI "\-\-uml\-login\-nocow"
Do not use COW filesystem when using 
.B "pbuilder\-user\-mode\-linux login"
so that changes made in the log in session will persist.

Effective in 
.B login
and 
.B exec
options.

\" copied from pbuilder.8

.TP
.BI "\-\-mirror [" "mirror location" "]"
Specifies the url of Debian mirror to be 
specified in 
.B "sources.list"
inside the chroot.
This option is only valid when distribution is being specified, for 
update and build targets.
The format is something like:
.I "http://http.us.debian.org/debian" 
which should point to your favorite mirror.

This option can optionally be omitted, and left blank,
in which case, this part is skipped.

Note that these URLs specified to pbuilder will be used from within
the chroot, and specifying 
.B "file:/somewhere/"
will most probably fail.

.TP
.BI "\-\-nonusmirror [" "mirror location" "]"
The non-US mirror, specified like the 
.B "\-\-mirror"
option
.TP
.BI "\-\-othermirror [" "deb http://xxx/xxx/ ./ " "|" " other deb lines... " "]"
The lines which is added to the sources.list, delimited with 
.B "|"
Like 
.B "deb http://local/mirror stable main|deb file:/usr/local/mirror ./"

The deb lines here are the ones that will appear at the top of the 
.B "sources.list"
inside the chroot.
Be sure to follow the syntax rules of
.RI "sources.list (" 5 ")."
These lines appear at the beginning of the
constructed sources file, so this is the place to list your
.B "local"
mirror sites; apt will then use them in preference to the ones 
listed in 
.B "\-\-mirror"
and
.B "\-\-nonusmirror".

These options are only valid when
.B "\-\-override\-config"
option is specified in 
.B "update"
target, or when
.B "pbuilder create"
is being called.

\" copied from pbuilder.8

.SH "NOTES"
For 
.B build
and
.B login
targets, 
.B pbuider\-user\-mode\-linux
will try to use COW devices.

Inside user-mode-linux, pbuilder-user-mode-linux will mount 
tmpfs as 
.B /tmp
to avoid temporary file race conditions with outside of UML.
This may cause problems trying to use files in /tmp directory.

.SH "FILES"
.TP
.I "/etc/pbuilderrc"
The system-wide configuration file for pbuilder.
.TP
.I "/usr/share/pbuilder/pbuilderrc"
The default settings for pbuilder, used as fallback for all 
values that is not specified in
.B "/etc/pbuilderrc."
.TP
.B "/etc/pbuilder/pbuilder\-uml.conf"
System-wide configuration file for pbuilder-uml, 
it will take priority over pbuilder configurations.
.TP
.B "/usr/share/pbuilder/pbuilder\-uml.conf"
Software-default configuration file for pbuilder-uml.
.TP
.B "${HOME}/.pbuilderrc"
User-default configuration file.
.SH "SEE ALSO"
.RI "pdebuild (" 1 "), "
.RI "pbuilder (" 8 "), "
.RI "rootstrap (" 1 "), "
.RI "linux (" 1 "), "
.RI "pbuilderrc (" 5 "), "
.RI "pbuilder\-uml.conf (" 5 ") "