summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2013-11-15 11:40:24 +0000
committerLars Wirzenius <liw@liw.fi>2013-11-15 11:40:24 +0000
commitcb9497be67a7fecefc7aca0de7b59a95dfaf558f (patch)
treefebe2afbfc3a4dc89294c0c530aa0c13b656e451
parent2fc2d3557736f8bec7bf4af0b6cb55efbcd20686 (diff)
downloadjenkinstool-cb9497be67a7fecefc7aca0de7b59a95dfaf558f.tar.gz
Configure dpkg on workers to use force-confold
-rwxr-xr-xvm-data/worker.customize8
1 files changed, 7 insertions, 1 deletions
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 <<EOF > "$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 -