2010-02-09 00:22:06 -08:00
.TH MK\-SBUILD "1" "09 February 2010" "ubuntu-dev-tools"
2008-08-27 14:02:14 -04:00
.SH NAME
2010-02-08 20:04:33 -05:00
mk\- sbuild \- creates chroots via schroot and sbuild
2008-08-27 14:02:14 -04:00
.SH SYNOPSIS
2010-02-08 20:04:33 -05:00
\fB mk\- sbuild\fR [\fB \- \- arch=ARCH\fR ] [\fB \- \- name=NAME\fR ]
2008-09-01 09:50:23 +01:00
[\fB \- \- personality=PERSONALITY\fR ] [\fB \- \- debug\fR ] [\fB \- \- source\- template=FILE\fR ]
2010-02-08 20:04:33 -05:00
[\fB \- \- debootstrap\- mirror=URL\fR ] <\fB Release\fR >
2008-08-27 14:02:14 -04:00
.SH DESCRIPTION
2010-02-08 20:04:33 -05:00
\fB mk\- sbuild\fR creates chroots via schroot and sbuild.
2008-08-27 14:02:14 -04:00
.SH OPTIONS
2010-02-08 20:04:33 -05:00
Listed below are the command line options for mk\- sbuild:
2008-08-27 14:02:14 -04:00
.TP
.B \- \- arch=ARCH
What architecture to select (defaults to the native architecture).
.TP
.B \- \- name=NAME
2009-01-03 10:50:53 -08:00
Base name for the schroot (arch is appended).
2008-08-27 14:02:14 -04:00
.TP
.B \- \- personality=PERSONALITY
2009-01-03 10:50:53 -08:00
What personality to use (defaults to match \- \- arch).
2008-08-27 14:02:14 -04:00
.TP
.B \- \- debug
2009-01-03 10:50:53 -08:00
Turn on script debugging.
.TP
.B \- \- skip\-updates
2009-01-19 14:10:41 +01:00
Do not include the \- updates pocket in the installed sources.list.
2008-08-27 14:02:14 -04:00
.TP
2008-09-01 09:50:23 +01:00
.B \- \- source\-template=FILE
2010-02-08 20:04:33 -05:00
Use FILE as the sources.list template (defaults to $HOME/.mk\- sbuild.sources).
2008-08-27 14:02:14 -04:00
.TP
2008-09-01 09:50:23 +01:00
.B \- \- debootstrap\-mirror=URL
2008-08-27 14:02:14 -04:00
Use URL as the debootstrap source (defaults to http://ports.ubuntu.com for lpia,
official Ubuntu repositories for the supported architectures).
2009-03-14 17:03:09 -04:00
.TP
2009-03-30 12:40:15 -07:00
.B \- \- distro
Enable distro-specific logic. Currently known distros: "ubuntu" (default)
and "debian".
2010-02-08 20:04:33 -05:00
.TP
2010-02-09 00:22:06 -08:00
.B \- \- vg
2010-02-09 22:10:58 +09:00
Specify a volume group, and subsequently use a default SCHROOT_TYPE of
"lvm-snapshot" rather than "directory" (via aufs) mounts.
.TP
.B \- \- type
2010-02-09 07:12:39 -08:00
Specify a SCHROOT_TYPE. Supported values are "directory" (default if
\- \- vg not specified), "lvm-snapshot" (default if \- \- vg specified), and "file".
2008-08-27 14:02:14 -04:00
.SH ENVIRONMENT VARIABLES
.TP
.B LV_SIZE
2009-01-03 10:50:53 -08:00
Size of source LVs (defaults to 5G).
2008-08-27 14:02:14 -04:00
.TP
.B SNAPSHOT_SIZE
2009-01-03 10:50:53 -08:00
Size of snapshot LVs (defaults to 4G).
2008-08-27 14:02:14 -04:00
.TP
.B SCHROOT_CONF_SUFFIX
2009-01-03 10:50:53 -08:00
Lines to append to schroot entries.
.TP
.B SKIP_UPDATES
2009-01-19 14:10:41 +01:00
Do not include the \- updates pocket in the installed sources.list.
2010-02-08 20:04:33 -05:00
.TP
.B SOURCE_CHROOTS_DIR
2010-02-09 00:22:06 -08:00
use SOURCE_CHROOTS_DIR as home of schroot source directories. (default
/var/lib/schroot/chroots)
2010-02-09 22:10:58 +09:00
.TP
.B SOURCE_CHROOTS_TGZ
use SOURCE_CHROOTS_TGZ as home of schroot source tarballs. (default
/var/lib/schroot/tarballs)
2008-08-27 14:02:14 -04:00
.SH FILES
.TP
2010-02-08 20:04:33 -05:00
.B $HOME/.mk\-sbuild.rc
2009-01-03 10:50:53 -08:00
Sourced for environment variables (defined above).
.TP
2010-02-09 00:22:06 -08:00
.B $HOME/.mk\-sbuild.sources[.$DISTRO]
2008-09-01 09:50:23 +01:00
Can contain a customized sources.list.
It will be read when creating the schroot.
2010-02-09 00:22:06 -08:00
If a file with ".ubuntu" or ".debian" is found (based on the \- \- distro
argument) that file will use used instead.
2008-09-01 09:50:23 +01:00
See sources.list(5) for more details on the format.
2008-08-27 14:02:14 -04:00
.TP
2010-02-09 00:22:06 -08:00
.B $HOME/.mk\-sbuild.schroot.conf[.$SCHROOT_TYPE]
2008-08-27 14:02:14 -04:00
Can contain a customized configuration section to be inserted into
2008-09-01 09:50:23 +01:00
/etc/schroot/schroot.conf.
2010-02-09 22:10:58 +09:00
If a file with ".lvm-snapshot", ".directory", or ".file" is found (based on the
values of the \- \- vg and \- \- type arguments) that file will use used instead.
2008-09-01 09:50:23 +01:00
See schroot.conf(5) for more details on the format.
2008-08-27 14:02:14 -04:00
.SH USING THE CHROOTS
.TP
2010-02-09 00:22:06 -08:00
To CHANGE the golden image: \fB sudo schroot \- c ${CHROOT_NAME}\- source \- u root\fR
2008-08-27 14:02:14 -04:00
.TP
2008-09-01 09:50:23 +01:00
To ENTER an image snapshot: \fB schroot \- c ${CHROOT_NAME}\fR
2008-08-27 14:02:14 -04:00
.TP
2008-09-01 09:50:23 +01:00
To BUILD within a snapshot: \fB sbuild \- d ${SCHROOT_NAME} PACKAGE*.dsc\fR
2009-05-06 11:00:21 -07:00
.TP
2009-10-24 18:06:06 +02:00
for example, to update the packages in a golden image: \fB schroot \- c ${CHROOT_NAME}\- source \- u root -- sh \- c "apt-get \- qq update && apt-get \- qy upgrade && apt-get clean" </dev/null\fR
2008-08-27 14:02:14 -04:00
.SH SEE ALSO
2009-01-10 15:09:09 +01:00
sbuild\- setup (7), sources.list (5), schroot.conf (5),
https://help.ubuntu.com/community/SbuildLVMHowto
2008-08-27 14:02:14 -04:00
.SH AUTHOR
2010-02-08 20:04:33 -05:00
\fB mk\- sbuild\fR was written by Kees Cook <kees@ubuntu.com>.
2008-09-01 09:50:23 +01:00
This man page was written by Ryan Kavanagh <ryanakca@kubuntu.org>.
Both are released under the GNU General Public License, version 3 or later.