/usr/share/schroot/setup/common-config is in schroot 1.6.10-4build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | # Copyright © 2012 Roger Leigh <rleigh@debian.org>
#
# schroot is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# schroot is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see
# <http://www.gnu.org/licenses/>.
#
#####################################################################
# Common configuration for use in schroot setup scripts
# Source setup.config if set
if [ -n "${SETUP_CONFIG}" ]; then
SETUP_CONFIG="${SYSCONF_DIR}/${SETUP_CONFIG}"
if [ -f "$SETUP_CONFIG" ]; then
. "$SETUP_CONFIG"
fi
fi
# Source script-config if set. If the file is no longer present
# (likely for upgrades), then set the defaults here.
if [ -n "$CHROOT_SCRIPT_CONFIG" ]; then
FSTAB="$(dirname "$CHROOT_SCRIPT_CONFIG")/fstab"
COPYFILES="$(dirname "$CHROOT_SCRIPT_CONFIG")/copyfiles"
NSSDATABASES="$(dirname "$CHROOT_SCRIPT_CONFIG")/nssdatabases"
if [ -f "$CHROOT_SCRIPT_CONFIG" ]; then
. "$CHROOT_SCRIPT_CONFIG"
fi
fi
# Set absolute paths
if [ -n "${SETUP_FSTAB}" ]; then
SETUP_FSTAB="${SYSCONF_DIR}/${SETUP_FSTAB}"
fi
if [ -n "${SETUP_COPYFILES}" ]; then
SETUP_COPYFILES="${SYSCONF_DIR}/${SETUP_COPYFILES}"
fi
if [ -n "${SETUP_NSSDATABASES}" ]; then
SETUP_NSSDATABASES="${SYSCONF_DIR}/${SETUP_NSSDATABASES}"
fi
# For backward compatibility with old script-config files. This
# overrides the new profile userdata settings. It will be removed in
# 1.7.x
if [ -n "$FSTAB" ]; then
SETUP_FSTAB="$FSTAB"
fi
if [ -n "$COPYFILES" ]; then
SETUP_COPYFILES="$COPYFILES"
fi
if [ -n "$NSSDATABASES" ]; then
SETUP_NSSDATABASES="$NSSDATABASES"
fi
|