summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/chroot-installation.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/chroot-installation.sh b/bin/chroot-installation.sh
index c82f25c9..85e77461 100755
--- a/bin/chroot-installation.sh
+++ b/bin/chroot-installation.sh
@@ -98,11 +98,18 @@ echo "set +x" >> $CTMPFILE
}
prepare_upgrade2() {
+ # support _aptdpkg_first type upgrade jobs...
+ if [ "${JOB_NAME: -14}" = "_aptdpkg_first" ] ; then
+ APTDPKGFIRST="apt-get install -y dpkg apt"
+ else
+ APTDPKGFIRST=""
+ fi
cat >> $CTMPFILE <<-EOF
echo "deb $MIRROR $1 main" >> /etc/apt/sources.list
$SCRIPT_HEADER
set -x
apt-get update
+$APTDPKGFIRST
apt-get -y upgrade
apt-get clean
apt-get -yf dist-upgrade