Merge pull request #8776 from thaJeztah/vagrant_locking

Cirrus CI: configure apt-get to wait for locks
This commit is contained in:
Fu Wei 2023-07-09 17:17:56 +08:00 committed by GitHub
commit 9afa2256f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,8 +26,9 @@ task:
# v7.0.0 does not boot. v6.0.0 was not released. # v7.0.0 does not boot. v6.0.0 was not released.
BOX: rockylinux/8@5.0.0 BOX: rockylinux/8@5.0.0
install_libvirt_vagrant_script: | install_libvirt_vagrant_script: |
apt-get update # if another process is keeping a lock, wait for 60 seconds for it to release the lock.
apt-get install -y libvirt-daemon libvirt-daemon-system vagrant vagrant-libvirt apt-get -o DPkg::Lock::Timeout=60 update
apt-get -o DPkg::Lock::Timeout=60 install -y libvirt-daemon libvirt-daemon-system vagrant vagrant-libvirt
systemctl enable --now libvirtd systemctl enable --now libvirtd
vagrant_cache: vagrant_cache:
@ -61,8 +62,9 @@ task:
memory: 16G memory: 16G
install_libvirt_vagrant_script: | install_libvirt_vagrant_script: |
apt-get update # if another process is keeping a lock, wait for 60 seconds for it to release the lock.
apt-get install -y libvirt-daemon libvirt-daemon-system vagrant vagrant-libvirt apt-get -o DPkg::Lock::Timeout=60 update
apt-get -o DPkg::Lock::Timeout=60 install -y libvirt-daemon libvirt-daemon-system vagrant vagrant-libvirt
systemctl enable --now libvirtd systemctl enable --now libvirtd
vagrant_cache: vagrant_cache: