Adding an upgrade and dist-upgrade to lh_chroot_sources, so that security updates gets pulled into the base system. Thanks to Kai Hendry <hendry@iki.fi>.

This commit is contained in:
Daniel Baumann 2007-11-18 11:09:55 +01:00
parent ec0d5cd48b
commit d26e57998f
1 changed files with 4 additions and 0 deletions

View File

@ -151,6 +151,8 @@ case "${1}" in
if [ "${LH_APT}" = "apt" ] || [ "${LH_APT}" = "apt-get" ] if [ "${LH_APT}" = "apt" ] || [ "${LH_APT}" = "apt-get" ]
then then
Chroot "apt-get update" Chroot "apt-get update"
Chroot "apt-get --yes upgrade"
Chroot "apt-get --yes dist-upgrade"
elif [ "${LH_APT}" = "aptitude" ] elif [ "${LH_APT}" = "aptitude" ]
then then
if [ ! -x /usr/bin/aptitude ] if [ ! -x /usr/bin/aptitude ]
@ -160,6 +162,8 @@ case "${1}" in
fi fi
Chroot "aptitude update" Chroot "aptitude update"
Chroot "aptitude --assume-yes upgrade"
Chroot "aptitude --assume-yes dist-upgrade"
fi fi
# Installing keyring packages # Installing keyring packages