mirror=$(cat /etc/schroot/dsa/default-mirror )
fi
mirror="${mirror:-https://deb.debian.org/debian}"
+smirror="https://deb.debian.org/debian-security"
configonly=""
force=""
basedir="/srv/chroot"
EOF
chmod +x "$rootdir/usr/local/sbin/policy-rc.d"
+case "$suite" in
+ jessie) # LTS updates
+ echo "deb ${smirror} ${suite}/updates main" >> "$rootdir/etc/apt/sources.list"
+ chroot "$rootdir" apt-get update
+ chroot "$rootdir" apt-get dist-upgrade -y
+ ;;
+esac
if [ -n "$ubuntu" ]; then
echo "deb $mirror ${suite}-updates main" >> "$rootdir/etc/apt/sources.list"
echo "deb $mirror ${suite}-security main" >> "$rootdir/etc/apt/sources.list"