source: trunk/debathena/scripts/build-server/07debathena @ 24193

Revision 24193, 627 bytes checked in by broder, 13 years ago (diff)
Update our build infrastructure and docs to use aufs chroots instead of LVM snapshots.
Line 
1#!/bin/sh
2
3set -e
4
5if [ -f "$CHROOT_SCRIPT_CONFIG" ]; then
6    . "$CHROOT_SCRIPT_CONFIG"
7fi
8
9if [ -n "${CHROOT_UNION_TYPE}" ] && [ "${CHROOT_UNION_TYPE}" != 'none' ]; then
10
11    if [ $1 = "setup-start" ]; then
12        mount -t tmpfs debathena ${CHROOT_UNION_OVERLAY_DIRECTORY} -o size=${TMPFS_SIZE:-10737418240}
13    elif [ $1 = "setup-stop" ]; then
14        if [ "$CHROOT_SESSION_PURGE" = "true" ]; then
15            if [ "$AUTH_VERBOSITY" = "verbose" ]; then
16                echo "Unmounting $CHROOT_UNION_OVERLAY_DIRECTORY"
17            fi
18            if [ -d "${CHROOT_UNION_OVERLAY_DIRECTORY}" ]; then
19                umount "${CHROOT_UNION_OVERLAY_DIRECTORY}"
20            fi
21        fi
22    fi
23fi
Note: See TracBrowser for help on using the repository browser.