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:
parent
ec0d5cd48b
commit
d26e57998f
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue