summaryrefslogtreecommitdiff
path: root/helpers
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-11-18 11:09:55 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 18:22:29 +0100
commitcd2618e5d51e24888540f6bd0c7ee36bbe0086b4 (patch)
tree13c84ccd5f4db165c212037c2308195150c90523 /helpers
parent01d34e6d1d9be1edf6d39777c7347bd0da5b1cbe (diff)
downloadlive-build-cd2618e5d51e24888540f6bd0c7ee36bbe0086b4.zip
live-build-cd2618e5d51e24888540f6bd0c7ee36bbe0086b4.tar.gz
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>.
Diffstat (limited to 'helpers')
-rwxr-xr-xhelpers/lh_chroot_sources4
1 files changed, 4 insertions, 0 deletions
diff --git a/helpers/lh_chroot_sources b/helpers/lh_chroot_sources
index f1bab8e..25713a1 100755
--- a/helpers/lh_chroot_sources
+++ b/helpers/lh_chroot_sources
@@ -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