From cb9497be67a7fecefc7aca0de7b59a95dfaf558f Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Fri, 15 Nov 2013 11:40:24 +0000 Subject: Configure dpkg on workers to use force-confold --- vm-data/worker.customize | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/vm-data/worker.customize b/vm-data/worker.customize index 7127bf4..a311129 100755 --- a/vm-data/worker.customize +++ b/vm-data/worker.customize @@ -2,7 +2,7 @@ # # vm-data/worker.customize - customize disk image for jenkins worker node # -# Copyright 2012 Lars Wirzenius +# Copyright 2012-2013 Lars Wirzenius # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -23,6 +23,12 @@ export LC_ALL=C rootdir="$1" +# Configure dpkg to prefer the old version of a conffile, so upgrades +# (especially of sid) will work without prompting. +cat < "$rootdir/etc/dpkg.cfg" +force-confold +EOF + # Install signing key for the code.liw.fi repository. wget -q -O - http://code.liw.fi/apt.asc | chroot "$rootdir" apt-key add - -- cgit v1.2.1