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:-cdn.debian.net}
27 case "${SUITE_BASE:-}" in
29 echo "deb http://$mirror/debian/ sid main" >> "$SRCL"
30 echo "deb-src http://$mirror/debian/ 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 http://$mirror/debian/ ${SUITE_BASE} main" >> "$SRCL"
40 echo "deb-src http://$mirror/debian/ ${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 http://$mirror/debian/ ${SUITE_BASE}-${SUITE_VARIANT} main" >> "$SRCL"
51 echo "deb-src http://$mirror/debian/ ${SUITE_BASE}-${SUITE_VARIANT} main" >> "$SRCL"
56 echo "You probably want to run apt-get update in this session chroot."