[Qa-jenkins-scm] [jenkins.debian.net] 03/05: pbuilder/schroot: pressed man-db to not auto-update and waste tons of time
Mattia Rizzolo
mattia at debian.org
Thu Apr 5 19:24:31 UTC 2018
This is an automated email from the git hooks/post-receive script.
mattia pushed a commit to branch master
in repository jenkins.debian.net.
commit 5efd7b2dc833c7de56183c77ae45745acdab21da
Author: Mattia Rizzolo <mattia at debian.org>
Date: Thu Apr 5 21:18:43 2018 +0200
pbuilder/schroot: pressed man-db to not auto-update and waste tons of time
Signed-off-by: Mattia Rizzolo <mattia at debian.org>
---
bin/reproducible_setup_pbuilder.sh | 2 ++
bin/schroot-create.sh | 7 +++++++
2 files changed, 9 insertions(+)
diff --git a/bin/reproducible_setup_pbuilder.sh b/bin/reproducible_setup_pbuilder.sh
index 51fd9b1..48a103b 100755
--- a/bin/reproducible_setup_pbuilder.sh
+++ b/bin/reproducible_setup_pbuilder.sh
@@ -31,6 +31,8 @@ echo
echo "Configuring APT to ignore the Release file expiration"
echo 'Acquire::Check-Valid-Until "false";' > /etc/apt/apt.conf.d/398future
echo
+echo "Preseeding man-db/auto-update to false"
+echo "man-db man-db/auto-update boolean false" | debconf-set-selections
echo
EOF
}
diff --git a/bin/schroot-create.sh b/bin/schroot-create.sh
index 5588684..cb1d70c 100755
--- a/bin/schroot-create.sh
+++ b/bin/schroot-create.sh
@@ -135,6 +135,13 @@ bootstrap() {
Acquire::Languages none;
__END__
+ sudo tee -a "$SCHROOT_TARGET/var/cache/debconf/config.dat" > /dev/null <<-__END__
+ Name: man-db/auto-update
+ Template: man-db/auto-update
+ Value: false
+ Owners: man-db
+ __END__
+
. /srv/jenkins/bin/jenkins_node_definitions.sh
get_node_ssh_port "$HOSTNAME"
if "$NODE_RUN_IN_THE_FUTURE" ; then
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list