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
01d34e6d1d
commit
cd2618e5d5
|
@ -151,6 +151,8 @@ case "${1}" in
|
|||
if [ "${LH_APT}" = "apt" ] || [ "${LH_APT}" = "apt-get" ]
|
||||
then
|
||||
Chroot "apt-get update"
|
||||
Chroot "apt-get --yes upgrade"
|
||||
Chroot "apt-get --yes dist-upgrade"
|
||||
elif [ "${LH_APT}" = "aptitude" ]
|
||||
then
|
||||
if [ ! -x /usr/bin/aptitude ]
|
||||
|
@ -160,6 +162,8 @@ case "${1}" in
|
|||
fi
|
||||
|
||||
Chroot "aptitude update"
|
||||
Chroot "aptitude --assume-yes upgrade"
|
||||
Chroot "aptitude --assume-yes dist-upgrade"
|
||||
fi
|
||||
|
||||
# Installing keyring packages
|
||||
|
|
Loading…
Reference in New Issue