summaryrefslogtreecommitdiffstats
path: root/.semaphore
diff options
context:
space:
mode:
authorLuca Boccassi <bluca@debian.org>2022-04-06 00:45:27 +0200
committerLuca Boccassi <bluca@debian.org>2022-04-06 01:24:11 +0200
commitb6529646e77271bfa08ef8b764db6b8a19b10a7f (patch)
treeaa391ab037ecf7b30e503a3fb2569ab24337289f /.semaphore
parentsemaphoreci: run dhclient manually on setup (diff)
downloadsystemd-b6529646e77271bfa08ef8b764db6b8a19b10a7f.tar.xz
systemd-b6529646e77271bfa08ef8b764db6b8a19b10a7f.zip
semaphoreci: speed up package installation
Disable updating the manpage database, and use dpkg's unsafe-io flag
Diffstat (limited to '.semaphore')
-rwxr-xr-x.semaphore/semaphore-runner.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/.semaphore/semaphore-runner.sh b/.semaphore/semaphore-runner.sh
index 80fd9b76f7..ba21811718 100755
--- a/.semaphore/semaphore-runner.sh
+++ b/.semaphore/semaphore-runner.sh
@@ -38,6 +38,11 @@ create_container() {
sed 's/^deb/deb-src/' /etc/apt/sources.list >> /etc/apt/sources.list.d/sources.list
# We might attach the console too soon
while ! systemctl --quiet --wait is-system-running; do sleep 1; done
+# Manpages database trigger takes a lot of time and is not useful in a CI
+echo 'man-db man-db/auto-update boolean false' | debconf-set-selections
+# Speed up dpkg, image is thrown away after the test
+mkdir -p /etc/dpkg/dpkg.cfg.d/
+echo 'force-unsafe-io' > /etc/dpkg/dpkg.cfg.d/unsafe_io
# For some reason, it is necessary to run this manually or the interface won't be configured
# Note that we avoid networkd, as some of the tests will break it later on
dhclient