diff --git a/scripts/chroot.sh b/scripts/chroot.sh index 508aea96a1538d2bad9e589ad7c020d10af92eee..2e09997104a7096394f0a4dd5060e3c807edfeb0 100755 --- a/scripts/chroot.sh +++ b/scripts/chroot.sh @@ -313,7 +313,7 @@ cat > ${DIR}/chroot_script.sh <<-__EOF__ install_pkgs () { #These packages have binaries needed by this script. - packages="initramfs-tools locales sudo u-boot-tools wget" + packages="locales sudo" for pkg in \${packages} ; do check_n_install ; done #Install the user choosen list. @@ -489,6 +489,10 @@ cat > ${DIR}/chroot_script.sh <<-__EOF__ install_pkg_updates install_pkgs + if [ "${chroot_KERNEL_HTTP_DIR}" ] ; then + packages="initramfs-tools u-boot-tools wget" + for pkg in \${packages} ; do check_n_install ; done + fi set_locale add_user