mirror of
https://github.com/systemd/systemd.git
synced 2024-12-22 17:35:35 +03:00
semaphore: drop the --keyserver= parameter for the download template
since it's no longer supported/necessary.
See: 5852026304
This commit is contained in:
parent
e8d0eb3915
commit
8162feac10
@ -19,14 +19,7 @@ PHASES=(${@:-SETUP RUN})
|
||||
UBUNTU_RELEASE="$(lsb_release -cs)"
|
||||
|
||||
create_container() {
|
||||
# Create autopkgtest LXC image; this sometimes fails with "Unable to fetch
|
||||
# GPG key from keyserver", so retry a few times with different keyservers.
|
||||
for keyserver in "keys.openpgp.org" "" "keyserver.ubuntu.com" "keys.gnupg.net"; do
|
||||
for retry in {1..5}; do
|
||||
sudo lxc-create -n "$CONTAINER" -t download -- -d "$DISTRO" -r "$RELEASE" -a "$ARCH" ${keyserver:+--keyserver "$keyserver"} && break 2
|
||||
sleep $((retry*retry))
|
||||
done
|
||||
done
|
||||
sudo lxc-create -n "$CONTAINER" -t download -- -d "$DISTRO" -r "$RELEASE" -a "$ARCH"
|
||||
|
||||
# unconfine the container, otherwise some tests fail
|
||||
echo 'lxc.apparmor.profile = unconfined' | sudo tee -a "/var/lib/lxc/$CONTAINER/config"
|
||||
|
Loading…
Reference in New Issue
Block a user