added fix for systemd ubuntu 18 (#881)

This commit is contained in:
Dariy Nurgaleev
2020-05-14 23:05:34 +07:00
committed by GitHub
parent 0e7d6a75c6
commit 48192ea930

View File

@@ -142,6 +142,13 @@ for cmd in curl file ftp jq netcat ssh parallel rsync shellcheck sudo telnet tim
fi fi
done done
# Workaround for systemd-resolve, since sometimes stub resolver does not work properly. Details: https://github.com/actions/virtual-environments/issues/798
echo "Create resolv.conf link."
if [[ -f /run/systemd/resolve/resolv.conf ]]; then
echo "Create resolv.conf link."
ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
fi
# Document what was added to the image # Document what was added to the image
echo "Lastly, documenting what we added to the metadata file" echo "Lastly, documenting what we added to the metadata file"
DocumentInstalledItem "Basic CLI:" DocumentInstalledItem "Basic CLI:"