]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
semaphoreci: speed up package installation
authorLuca Boccassi <bluca@debian.org>
Tue, 5 Apr 2022 22:45:27 +0000 (23:45 +0100)
committerLuca Boccassi <bluca@debian.org>
Tue, 5 Apr 2022 23:24:11 +0000 (00:24 +0100)
Disable updating the manpage database, and use dpkg's unsafe-io flag

.semaphore/semaphore-runner.sh

index 80fd9b76f770061364c6a3921a323bbfb910ed48..ba2181171814485369761bfc6b6d28845a4f90c1 100755 (executable)
@@ -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