From 8f0799137470c67dc60fcab90a6e30b18b912010 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sun, 21 Dec 2014 14:05:48 +0100 Subject: chroot-installation: add new _aptdpkg_first upgrade jobs which upgrade apt+dpkg before the rest. only for some tasks and only for upgrades from jessie+sid --- bin/chroot-installation.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'bin/chroot-installation.sh') 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 -- cgit v1.2.3-54-g00ecf