[27169] in Source-Commits

home help back first fref pref prev next nref lref last post

Re: /svn/athena r25990 - in trunk/debathena/scripts/build-server:

daemon@ATHENA.MIT.EDU (Benjamin Kaduk)
Mon May 13 12:32:16 2013

Date: Mon, 13 May 2013 12:32:05 -0400 (EDT)
From: Benjamin Kaduk <kaduk@MIT.EDU>
To: Jonathan D Reed <jdreed@MIT.EDU>
cc: source-commits@MIT.EDU
In-Reply-To: <201305131558.r4DFwJKh006635@drugstore.mit.edu>
Message-ID: <alpine.GSO.1.10.1305131232000.9389@multics.mit.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed

ACK.
Thanks for the man page!

-Ben

On Mon, 13 May 2013, Jonathan D Reed wrote:

> Author: jdreed
> Date: 2013-05-13 11:58:19 -0400 (Mon, 13 May 2013)
> New Revision: 25990
>
> Added:
>   trunk/debathena/scripts/build-server/make-chroot.8
> Modified:
>   trunk/debathena/scripts/build-server/debian/debathena-build-server.install
>   trunk/debathena/scripts/build-server/make-chroot
> Log:
> - Set SCRIPTCFG unconditionally in make-chroot
> - Add a man page and install it
>
>
> Modified: trunk/debathena/scripts/build-server/debian/debathena-build-server.install
> ===================================================================
> --- trunk/debathena/scripts/build-server/debian/debathena-build-server.install	2013-05-13 01:19:39 UTC (rev 25989)
> +++ trunk/debathena/scripts/build-server/debian/debathena-build-server.install	2013-05-13 15:58:19 UTC (rev 25990)
> @@ -1,4 +1,5 @@
> make-chroot usr/sbin
> +make-chroot.8 usr/share/man/man8
> gen-distributions usr/lib/debathena-build-server
> policy-rc.d usr/share/debathena-build-server
> dot-devscripts usr/share/debathena-build-server
>
> Modified: trunk/debathena/scripts/build-server/make-chroot
> ===================================================================
> --- trunk/debathena/scripts/build-server/make-chroot	2013-05-13 01:19:39 UTC (rev 25989)
> +++ trunk/debathena/scripts/build-server/make-chroot	2013-05-13 15:58:19 UTC (rev 25990)
> @@ -114,12 +114,12 @@
>     fi
> }
> TMPDIR=$(mktemp -d /var/tmp/make-chroot.XXXXXX)
> +SCRIPTCFG="debathena/config"
> if [ "$TYPE" = "overlayfs" ]; then
>     TARGET="$TMPDIR"
>     mount "$DEVICE" "$TARGET"
> else
>     TARGET="$TMPDIR/root"
> -    SCRIPTCFG="debathena/config"
> fi
> debootstrap --variant=buildd --include=apt,apt-utils,gnupg,build-essential,fakeroot --arch "$ARCH" "$SUITE" "$TARGET" "$MIRROR"
> install -m a=rx,u+w "$DATA/policy-rc.d" "$TARGET/usr/sbin/"
>
> Added: trunk/debathena/scripts/build-server/make-chroot.8
> ===================================================================
> --- trunk/debathena/scripts/build-server/make-chroot.8	                        (rev 0)
> +++ trunk/debathena/scripts/build-server/make-chroot.8	2013-05-13 15:58:19 UTC (rev 25990)
> @@ -0,0 +1,61 @@
> +.TH MAKE-CHROOT 8 "13 May 2013" "deabthena-build-server"
> +.SH NAME
> +make-chroot \- Create a chroot suitable for use with the Debathena build environment
> +.SH SYNOPSIS
> +.nf
> +.B make-chroot [options] \fIsuite\fP \fIarch\fP
> +.sp
> +.SH DESCRIPTION
> +.BR make-chroot
> +can be used to create a chroot suitable for use with the Debathena build
> +environment.  \fIsuite\fP is the codename of a release (e.g. precise,
> +squeeze), and \fIarch\fP is one of "i386" or "amd64".
> +
> +.SH OPTIONS
> +.IP -d
> +Debug mode.  Sets "-x" in the shell and also will not remove a tar-based
> +chroot's directory if something fails.
> +.IP -z
> +When using tar-based chroots, compress with bzip2.
> +.IP -o
> +Create an overlayfs chroot, not a tar chroot (default).
> +.IP -t
> +Create a tar chroot, not an overlayfs chroot.
> +
> +.SH ENVIRONMENT VARIABLES
> +The following environment variables influence this script.
> +.IP VG
> +When create tar-based chroots, create them in this LVM2 volume group.
> +You must use the full path (e.g. /dev/\fIvolgroup\fP).
> +(Default: /dev/builder)
> +.IP CHROOTDIR
> +Create tar-based chroots in this directory.  (Default: /srv)
> +.IP MIRRORHOST
> +Use this HTTP host for the upstream mirror.  (Default: localhost:9999)
> +.IP DATA
> +Data (such as the sources.list files) for make-chroot is found in this
> +location. (Default: /usr/share/debathena-build-server).  If the
> +directory does not exist, it will fall back to $(dirname $0)
> +.IP APTKEY
> +The Debathena archive keyring.
> +(Default: /usr/share/keyrings/debathena-archive-keyring.gpg)
> +
> +.SH NOTES
> +
> +When using this in a desktop environment, Nautilus/UDisks will happily
> +throw up new windows everytime an LV is created or mounted.  To disable
> +this, you may wish to use a local low-number udev rule (in
> +/etc/udev/rules.d) with content such as:
> +
> +SUBSYSTEM=="block", DM_UUID=="LVM*", ENV{UDISKS_AUTO}="0", ENV{UDISKS_PRESENTATION_HIDE}="1"
> +
> +The above rule (on one line) will hide any LVM partitions from UDisks.
> +Customize the rule as you see fit.
> +
> +.SH SEE ALSO
> +
> +schroot.conf(5), debootstrap(8), schroot(1)
> +
> +.SH AUTHOR
> +SIPB Debathena Project (http://debathena.mit.edu)
> +
>
>

home help back first fref pref prev next nref lref last post