diff --git a/scripts/chroot.sh b/scripts/chroot.sh
index 5ec7008c3df80215773f78440b5e704e225680f1..d2bf663d74b7b6470cc393c88a264c4ac28a1930 100755
--- a/scripts/chroot.sh
+++ b/scripts/chroot.sh
@@ -484,11 +484,11 @@ cat > ${DIR}/chroot_script.sh <<-__EOF__
 		groupadd admin || true
 		default_groups="admin,adm,dialout,cdrom,floppy,audio,dip,video"
 
-		if [ "x${chroot_very_small_image}" = "x" ] ; then
-			packages="sudo"
-			for pkg in \${packages} ; do check_n_install ; done
-		fi
-		if [ -f /etc/sudoers ] ; then
+		pkg="sudo"
+		dpkg_check
+
+		if [ "x\${pkg_is_not_installed}" = "x" ] ; then
+			echo "Log: (chroot) adding admin group to /etc/sudoers"
 			echo "%admin  ALL=(ALL) ALL" >>/etc/sudoers
 		fi