From 1ae3a81584dbc47fcb2788a707984570d494e6d5 Mon Sep 17 00:00:00 2001 From: Kristian Klausen <kristian@klausen.dk> Date: Sun, 18 Sep 2022 13:34:29 +0200 Subject: [PATCH] gitlab_runner: Disable slow/unneeded systemd-time-wait-sync in the VM image The service was enabled in arch-boxes to account for "hardware clock is not in UTC, but instead UTC+X"[1], in our case the (VM) hardware clock is in UTC and we therfor don't need the slow systemd-time-wait-sync service (+30 seconds). [1] https://gitlab.archlinux.org/archlinux/arch-boxes/-/commit/e23d3c57a02b6b6d1062a878b792dfcce2c7004d --- roles/gitlab_runner/files/libvirt-executor-update-base-image | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/gitlab_runner/files/libvirt-executor-update-base-image b/roles/gitlab_runner/files/libvirt-executor-update-base-image index 928cb04dc..e7b9a2747 100755 --- a/roles/gitlab_runner/files/libvirt-executor-update-base-image +++ b/roles/gitlab_runner/files/libvirt-executor-update-base-image @@ -32,7 +32,7 @@ arch-chroot mnt pacman-key --populate # shellcheck disable=SC2016 printf 'Server = https://geo.mirror.pkgbuild.com/$repo/os/$arch' > mnt/etc/pacman.d/mirrorlist -arch-chroot mnt systemctl disable reflector-init +arch-chroot mnt systemctl disable reflector-init systemd-time-wait-sync arch-chroot mnt pacman -Sy --noconfirm --needed archlinux-keyring arch-chroot mnt pacman -Syu --noconfirm --needed git git-lfs gitlab-runner sed -E 's/^#(IgnorePkg *=)/\1 linux/' -i mnt/etc/pacman.conf -- GitLab