diff --git a/scripts/chroot.sh b/scripts/chroot.sh
index 73ae18797493d6d5936b3b22a62d6b8ff22530fe..54896dff7b411e992d90a0830117907af1054f3c 100755
--- a/scripts/chroot.sh
+++ b/scripts/chroot.sh
@@ -581,11 +581,12 @@ cat > ${DIR}/chroot_script.sh <<-__EOF__
 		run_deborphan
 	fi
 	add_user
-	startup_script
 
 	mkdir -p /opt/source || true
 	touch /opt/source/list.txt
 
+	startup_script
+
 	if [ "x${chroot_ENABLE_DEB_SRC}" = "xenable" ] ; then
 		dl_pkg_src
 	fi