2008-09-01 09:50:23 +01:00
.TH MK\-SBUILD\-LV "1" "27 August 2008" "ubuntu-dev-tools"
2008-08-27 14:02:14 -04:00
.SH NAME
2008-09-01 09:50:23 +01:00
mk\- sbuild\- lv \- creates LVM snapshot chroots via schroot and sbuild
2008-08-27 14:02:14 -04:00
.SH SYNOPSIS
2008-09-01 09:50:23 +01:00
\fB mk\- sbuild\- lv\fR [\fB \- \- arch=ARCH\fR ] [\fB \- \- name=NAME\fR ]
[\fB \- \- personality=PERSONALITY\fR ] [\fB \- \- debug\fR ] [\fB \- \- source\- template=FILE\fR ]
[\fB \- \- debootstrap\- mirror=URL\fR ] <\fB VG\fR > <\fB Release\fR >
2008-08-27 14:02:14 -04:00
.SH DESCRIPTION
2008-09-01 09:50:23 +01:00
\fB mk\- sbuild\- lv\fR creates LVM snapshot chroots via schroot and sbuild.
2008-08-27 14:02:14 -04:00
.SH OPTIONS
2008-09-01 09:50:23 +01:00
Listed below are the command line options for mk\- sbuild\- lv:
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
2009-01-03 10:50:53 -08:00
Use FILE as the sources.list template (defaults to $HOME/.mk\- sbuild\- lv.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".
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.
2008-08-27 14:02:14 -04:00
.SH FILES
.TP
2009-01-03 10:50:53 -08:00
.B $HOME/.mk\-sbuild\-lv.rc
Sourced for environment variables (defined above).
.TP
2008-09-01 09:50:23 +01:00
.B $HOME/.mk\-sbuild\-lv.sources
Can contain a customized sources.list.
It will be read when creating the schroot.
See sources.list(5) for more details on the format.
2008-08-27 14:02:14 -04:00
.TP
2008-09-01 09:50:23 +01:00
.B $HOME/.mk\-sbuild\-lv.schroot.conf
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.
See schroot.conf(5) for more details on the format.
2008-08-27 14:02:14 -04:00
.SH USING THE CHROOTS
.TP
2009-05-06 11:00:21 -07:00
To CHANGE the golden image: \fB 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
2008-09-01 09:50:23 +01:00
\fB mk\- sbuild\- lv\fR was written by Kees Cook <kees@ubuntu.com>.
This man page was written by Ryan Kavanagh <ryanakca@kubuntu.org>.
Both are released under the GNU General Public License, version 3 or later.