diff --git a/scripts/chroot.sh b/scripts/chroot.sh
index 2913ab50e5f7abf8e6dbc6055a9c15aedd5f1ddb..e05e87ff3bfbcac38a69269753f32383fe02e433 100755
--- a/scripts/chroot.sh
+++ b/scripts/chroot.sh
@@ -275,7 +275,7 @@ stretch|buster|sid)
 esac
 
 case "${deb_codename}" in
-wheezy)
+wheezy|jessie)
 	echo "" >> ${wfile}
 	echo "deb http://security.debian.org/ ${deb_codename}/updates ${deb_components}" >> ${wfile}
 	echo "#deb-src http://security.debian.org/ ${deb_codename}/updates ${deb_components}" >> ${wfile}
@@ -288,7 +288,7 @@ wheezy)
 		echo "##deb-src http://ftp.debian.org/debian ${deb_codename}-backports ${deb_components}" >> ${wfile}
 	fi
 	;;
-jessie)
+stretch)
 	echo "" >> ${wfile}
 	echo "#deb http://security.debian.org/ ${deb_codename}/updates ${deb_components}" >> ${wfile}
 	echo "##deb-src http://security.debian.org/ ${deb_codename}/updates ${deb_components}" >> ${wfile}