4 ## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
5 ## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
12 . "$SETUP_DATA_DIR/common-data"
13 . "$SETUP_DATA_DIR/common-functions"
15 if [ -f "$CHROOT_SCRIPT_CONFIG" ]; then
16 . "$CHROOT_SCRIPT_CONFIG"
17 elif [ "$STATUS" = "ok" ]; then
18 fatal "script-config file '$CHROOT_SCRIPT_CONFIG' does not exist"
22 if [ "$1" = "setup-start" ] || [ "$1" = "setup-recover" ]; then
23 SRCL="${CHROOT_PATH}/etc/apt/sources.list.d/auto.list"
25 mirror=${MIRROR:-http://cdn.debian.net/debian}
27 case "${SUITE_BASE:-}" in
29 echo "deb $mirror sid main" >> "$SRCL"
30 echo "deb-src $mirror sid main" >> "$SRCL"
35 echo "deb http://security.debian.org/ ${SUITE_BASE}/updates main" >> "$SRCL"
36 echo "deb-src http://security.debian.org/ ${SUITE_BASE}/updates main" >> "$SRCL"
39 echo "deb $mirror ${SUITE_BASE} main" >> "$SRCL"
40 echo "deb-src $mirror ${SUITE_BASE} main" >> "$SRCL"
42 case "${SUITE_VARIANT:-}" in
44 case "${SUITE_BASE:-}" in
46 echo "deb http://backports.debian.org/debian-backports/ ${SUITE_BASE}-${SUITE_VARIANT} main" >> "$SRCL"
47 echo "deb-src http://backports.debian.org/debian-backports/ ${SUITE_BASE}-${SUITE_VARIANT} main" >> "$SRCL"
50 echo "deb $mirror ${SUITE_BASE}-${SUITE_VARIANT} main" >> "$SRCL"
51 echo "deb-src $mirror ${SUITE_BASE}-${SUITE_VARIANT} main" >> "$SRCL"
56 echo "o To install build dependencies run"
57 echo " dd-schroot-cmd -c ${SESSION_ID} apt-get update"
58 echo " followed by build-dep/install as appropriate in the host system."
59 echo "o If you started this session with schroot -b, please do not forget to run"
60 echo " schroot --end-session -c ${SESSION_ID}"
61 echo " when you no longer need this environment."