sid)
genschrootconf "experimental" "$arch" "$target"
;;
- #experimental|jessie)
experimental)
:
;;
if [ -e /etc/schroot/dsa/default-mirror ]; then
mirror=$(cat /etc/schroot/dsa/default-mirror )
fi
-mirror="${mirror:-http://http.debian.net/debian}"
+mirror="${mirror:-http://ftp.debian.org/debian}"
configonly=""
force=""
basedir="/srv/chroot"
personality="dsa"
sbuildnames=""
ubuntu=""
-groupuser="Debian,guest"
+groupuser="Debian,guest,d-i"
grouproot=""
users=""
usersroot=""
suite="$1"; shift
tuple="${suite}_${arch}"
-builddir=${builddir:-$basedir}
+if [ -z "${builddir:-}" ]; then
+ builddir=${builddir:-$basedir}
+ for u in schroot-unpack unpack; do
+ # if one of these directories exists and is on a different filesystem, prefer it.
+ candidate="$builddir/$u"
+ if [ -e "$candidate" ] &&
+ [ "$(stat -f --printf '%i\n' "$builddir" )" != "$(stat -f --printf '%i\n' "$candidate")" ]; then
+ builddir="$candidate"
+ fi
+ done
+fi
[ -d "$basedir" ] || die "Error: $basedir does not exist (or is not a directory)."
[ -d "$builddir" ] || die "Error: $builddir does not exist (or is not a directory)."
chroot "$rootdir" apt-get update
-chroot "$rootdir" apt-get install -y --force-yes --no-install-recommends policyrcd-script-zg2
+chroot "$rootdir" apt-get install -y --no-install-recommends policyrcd-script-zg2
cat > "$rootdir/usr/local/sbin/policy-rc.d" << 'EOF'
#!/bin/sh
done
EOF
chmod +x "$rootdir/usr/local/sbin/policy-rc.d"
-[ -z "$bare" ] && [ -z "$ubuntu" ] && chroot "$rootdir" apt-get install -y --force-yes --no-install-recommends locales-all
-chroot "$rootdir" apt-get install -y --force-yes --no-install-recommends build-essential
-[ -z "$bare" ] && chroot "$rootdir" apt-get install -y --force-yes --no-install-recommends zsh less vim fakeroot devscripts gdb
+[ -z "$bare" ] && [ -z "$ubuntu" ] && chroot "$rootdir" apt-get install -y --no-install-recommends locales-all
+chroot "$rootdir" apt-get install -y --no-install-recommends build-essential
+[ -z "$bare" ] && chroot "$rootdir" apt-get install -y --no-install-recommends zsh less vim fakeroot devscripts gdb
rm -f "$rootdir/etc/apt/sources.list" "$rootdir/etc/apt/sources.list.d/*"
chroot "$rootdir" apt-get clean
umount "$rootdir/dev" 2>/dev/null || true