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
|
2011-04-24 16:17:55 +02:00
|
|
|
\fBmk\-sbuild\fR [\fIoptions\fR...] <\fIrelease\fR>
|
2008-08-27 14:02:14 -04:00
|
|
|
|
|
|
|
.SH DESCRIPTION
|
2010-02-08 20:04:33 -05:00
|
|
|
\fBmk\-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
|
2011-04-24 16:36:59 +02:00
|
|
|
.B \-\-arch\fR=\fIARCH
|
2008-08-27 14:02:14 -04:00
|
|
|
What architecture to select (defaults to the native architecture).
|
|
|
|
.TP
|
2012-10-31 14:08:59 +01:00
|
|
|
.B \-\-target\fR=\fRARCH
|
|
|
|
Set up the chroot as a cross-building environment targeting the specified
|
|
|
|
architecture.
|
|
|
|
.TP
|
2011-04-24 16:36:59 +02:00
|
|
|
.B \-\-name\fR=\fINAME
|
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
|
2011-04-24 16:36:59 +02:00
|
|
|
.B \-\-personality\fR=\fIPERSONALITY
|
|
|
|
What personality to use (defaults to match \fB\-\-arch\fR).
|
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
|
2011-04-24 16:36:59 +02:00
|
|
|
Do not include the \fB\-updates\fR pocket in the installed
|
|
|
|
\fBsources.list\fR.
|
2008-08-27 14:02:14 -04:00
|
|
|
.TP
|
2012-11-06 11:45:24 +02:00
|
|
|
.B \-\-skip\-proposed
|
|
|
|
Do not include the \fB\-proposed\fR pocket in the installed
|
|
|
|
\fBsources.list\fR.
|
|
|
|
.TP
|
2011-04-24 16:36:59 +02:00
|
|
|
.B \-\-source\-template\fR=\fIFILE
|
|
|
|
Use \fIFILE\fR as the \fBsources.list\fR template (defaults to
|
|
|
|
\fI$HOME\fB/.mk\-sbuild.sources\fR).
|
2008-08-27 14:02:14 -04:00
|
|
|
.TP
|
2011-04-24 16:36:59 +02:00
|
|
|
.B \-\-debootstrap\-mirror\fR=\fIURL
|
|
|
|
Use \fIURL\fR as the debootstrap source (defaults to
|
|
|
|
\fBhttp://ports.ubuntu.com\fR where appropriate, official Ubuntu
|
|
|
|
repositories for the supported architectures).
|
2009-03-14 17:03:09 -04:00
|
|
|
.TP
|
2011-04-24 16:36:59 +02:00
|
|
|
.B \-\-debootstrap\-include\fR=\fIalpha,beta
|
|
|
|
Pass along a comma separated list of packages to debootstrap's
|
|
|
|
\fB\-\-include\fR argument. See \fBdebootstrap\fR (8) for more details.
|
2010-07-27 23:07:34 -07:00
|
|
|
.TP
|
2011-04-24 16:36:59 +02:00
|
|
|
.B \-\-debootstrap\-exclude\fR=\fIalpha,beta
|
|
|
|
Pass along a comma separated list of packages to debootstrap's
|
|
|
|
\fB\-\-exclude\fR argument.
|
|
|
|
\fBWARNING:\fR be careful using this option as you can end up
|
|
|
|
excluding essential package. See \fBdebootstrap \fR(8) for more details.
|
2010-07-27 23:07:34 -07:00
|
|
|
.TP
|
2011-04-24 16:36:59 +02:00
|
|
|
.B \-\-distro\fR=\fIDISTRO
|
2011-04-24 16:17:55 +02:00
|
|
|
Enable distro-specific logic.
|
|
|
|
When not provided, the distribution is determined from \fIrelease\fR.
|
|
|
|
Currently known distros: "\fBdebian\fR" and "\fBubuntu\fR".
|
2010-02-08 20:04:33 -05:00
|
|
|
.TP
|
2011-04-24 16:36:59 +02:00
|
|
|
.B \-\-vg\fR=\fIVOLUME_GROUP
|
|
|
|
Specify a volume group, and subsequently use a default \fBSCHROOT_TYPE\fR of
|
2011-11-16 13:52:18 +02:00
|
|
|
"\fBlvm-snapshot\fR" rather than "\fBdirectory\fR" (via overlayfs or
|
|
|
|
aufs) mounts.
|
2010-02-09 22:10:58 +09:00
|
|
|
.TP
|
2011-04-24 16:36:59 +02:00
|
|
|
.B \-\-type\fR=\fISHROOT_TYPE
|
|
|
|
Specify a \fBSCHROOT_TYPE\fR. Supported values are "\fBdirectory\fR"
|
|
|
|
(default if \fB\-\-vg\fR not specified), "\fBlvm-snapshot\fR" (default
|
|
|
|
if \fB\-\-vg\fR specified), "\fBbtrfs-snapshot\fR", and "\fBfile\fR".
|
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
|
2011-04-24 16:36:59 +02:00
|
|
|
Do not include the \fB\-updates\fR pocket (same as
|
|
|
|
\fB\-\-skip\-updates\fR)
|
2010-02-08 20:04:33 -05:00
|
|
|
.TP
|
2012-11-06 11:45:24 +02:00
|
|
|
.B SKIP_PROPOSED
|
|
|
|
Do not include the \fB\-proposed\fR pocket (same as
|
|
|
|
\fB\-\-skip\-proposed\fR)
|
|
|
|
.TP
|
2010-02-18 11:11:16 -08:00
|
|
|
.B DEBOOTSTRAP_MIRROR
|
2011-04-24 16:36:59 +02:00
|
|
|
Mirror location (same as \fB\-\-debootstrap-mirror\fR)
|
2010-02-18 11:11:16 -08:00
|
|
|
.TP
|
2010-07-27 23:07:34 -07:00
|
|
|
.B DEBOOTSTRAP_INCLUDE
|
2011-04-24 16:36:59 +02:00
|
|
|
Comma separated list of packages to include when bootstrapping (same as
|
|
|
|
\fB\-\-debootstrap-include\fR)
|
2010-07-27 23:07:34 -07:00
|
|
|
.TP
|
|
|
|
.B DEBOOTSTRAP_EXCLUDE
|
2011-04-24 16:36:59 +02:00
|
|
|
Comma separated list of packages to exclude when bootstrapping (same as
|
|
|
|
\fB\-\-debootstrap-exclude\fR; see warning above)
|
2010-07-27 23:07:34 -07:00
|
|
|
.TP
|
2010-02-08 20:04:33 -05:00
|
|
|
.B SOURCE_CHROOTS_DIR
|
2011-04-24 16:36:59 +02:00
|
|
|
Use \fBSOURCE_CHROOTS_DIR\fR as home of schroot source directories.
|
|
|
|
(default \fB/var/lib/schroot/chroots\fR)
|
2010-02-09 22:10:58 +09:00
|
|
|
.TP
|
|
|
|
.B SOURCE_CHROOTS_TGZ
|
2011-04-24 16:36:59 +02:00
|
|
|
Use \fBSOURCE_CHROOTS_TGZ\fR as home of schroot source tarballs.
|
|
|
|
(default \fB/var/lib/schroot/tarballs\fR)
|
2010-10-25 12:27:50 -04:00
|
|
|
.TP
|
|
|
|
.B CHROOT_SNAPSHOT_DIR
|
2011-04-24 16:36:59 +02:00
|
|
|
Use \fBCHROOT_SNAPSHOT_DIR\fR as home of mounted btrfs snapshots.
|
|
|
|
(default \fB/var/lib/schroot/snapshots\fR)
|
2010-10-25 12:27:50 -04:00
|
|
|
|
2008-08-27 14:02:14 -04:00
|
|
|
|
|
|
|
.SH FILES
|
|
|
|
.TP
|
2011-04-24 16:36:59 +02:00
|
|
|
.IB $HOME /.mk\-sbuild.rc
|
2009-01-03 10:50:53 -08:00
|
|
|
Sourced for environment variables (defined above).
|
|
|
|
.TP
|
2011-04-24 16:36:59 +02:00
|
|
|
.IB $HOME /.mk\-sbuild.sources\fR[\fB. $DISTRO\fR]
|
|
|
|
Can contain a customized \fBsources.list\fR.
|
2008-09-01 09:50:23 +01:00
|
|
|
It will be read when creating the schroot.
|
2011-04-24 16:36:59 +02:00
|
|
|
If a file with "\fB.ubuntu\fR" or "\fB.debian\fR" is found (as
|
|
|
|
appropriate) it will use used instead.
|
|
|
|
See \fBsources.list\fR (5) for more details on the format.
|
2008-08-27 14:02:14 -04:00
|
|
|
.TP
|
2011-04-24 16:36:59 +02:00
|
|
|
.IB $HOME /.mk\-sbuild.schroot.conf\fR[\fB. $SCHROOT_TYPE\fR]
|
2008-08-27 14:02:14 -04:00
|
|
|
Can contain a customized configuration section to be inserted into
|
2011-04-24 16:36:59 +02:00
|
|
|
\fB/etc/schroot/schroot.conf\fR.
|
|
|
|
If a file with "\fB.lvm-snapshot\fR", "\fB.directory\fR", "\fB.file\fR",
|
2011-05-02 15:04:29 +10:00
|
|
|
or "\fBbtrfs-snapshot\fR" is found (as appropriate) that file will use used instead.
|
2011-04-24 16:36:59 +02:00
|
|
|
See \fBschroot.conf\fR (5) for more details on the format.
|
2008-08-27 14:02:14 -04:00
|
|
|
.SH USING THE CHROOTS
|
|
|
|
.TP
|
2011-04-24 16:36:59 +02:00
|
|
|
To CHANGE the golden image: \fBsudo schroot \-c \fI${SCHROOT_NAME}\fB\-source \-u root\fR
|
2008-08-27 14:02:14 -04:00
|
|
|
.TP
|
2011-04-24 16:36:59 +02:00
|
|
|
To ENTER an image snapshot: \fBschroot \-c \fI$SCHROOT_NAME\fR
|
2008-08-27 14:02:14 -04:00
|
|
|
.TP
|
2011-04-24 16:36:59 +02:00
|
|
|
To BUILD within a snapshot: \fBsbuild \-A \-d \fI$SCHROOT_NAME $PACKAGE\fB*.dsc\fR
|
2009-05-06 11:00:21 -07:00
|
|
|
.TP
|
2011-04-24 16:36:59 +02:00
|
|
|
for example, to update the packages in a \fBsid\-amd64\fR golden image:
|
|
|
|
\fBschroot \-c sid\-amd64\-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
|
2011-04-24 16:36:59 +02:00
|
|
|
.BR sbuild\-setup (7),
|
|
|
|
.BR sources.list (5),
|
|
|
|
.BR schroot.conf (5),
|
|
|
|
.B https://help.ubuntu.com/community/SbuildLVMHowto
|
2008-08-27 14:02:14 -04:00
|
|
|
|
|
|
|
.SH AUTHOR
|
2010-02-08 20:04:33 -05:00
|
|
|
\fBmk\-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.
|