|
...
|
...
|
@@ -72,7 +72,10 @@ fi
|
|
72
|
72
|
# We've found that Libvirt on Xenial is flaky and crashes enough to be
|
|
73
|
73
|
# a regular top e-r bug. Opt into Ubuntu Cloud Archive if on Xenial to
|
|
74
|
74
|
# get newer Libvirt.
|
|
75
|
|
-if [[ "$DISTRO" = "xenial" ]]; then
|
|
|
75
|
+# Make it possible to switch this based on an environment variable as
|
|
|
76
|
+# libvirt 2.5.0 doesn't handle nested virtualization quite well and this
|
|
|
77
|
+# is required for the trove development environment.
|
|
|
78
|
+if [[ "${ENABLE_UBUNTU_CLOUD_ARCHIVE}" == "True" && "$DISTRO" = "xenial" ]]; then
|
|
76
|
79
|
# This pulls in apt-add-repository
|
|
77
|
80
|
install_package "software-properties-common"
|
|
78
|
81
|
# Use UCA for newer libvirt. Should give us libvirt 2.5.0.
|