From 6c2deaf61f76abd864748e03b0bbd918fcf86eae Mon Sep 17 00:00:00 2001 From: Arif Ali Date: Sun, 31 Jan 2021 18:46:32 +0000 Subject: [PATCH] Add add-repo back in, and fix boot-source import --- bootstrap-maas.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bootstrap-maas.sh b/bootstrap-maas.sh index 142ee21..867ef26 100755 --- a/bootstrap-maas.sh +++ b/bootstrap-maas.sh @@ -65,7 +65,7 @@ remove_maas_snap() { install_maas_deb() { - #sudo apt-add-repository ppa:maas/${maas_version} -y + sudo apt-add-repository ppa:maas/${maas_version} -y # This is separate from the removal, so we can handle them atomically sudo apt-get -fuy --reinstall install "${core_packages}" "${maas_packages[@]}" "${pg_packages[@]}" @@ -159,7 +159,7 @@ build_maas() { [[ $default_release == "focal" ]] && other_release="bionic" [[ $default_release == "bionic" ]] && other_release="focal" - [[ -n "$other_release" ]] && maas ${maas_profile} boot-source-selections update 1 os="ubuntu" release="${other_release}" arches="amd64" subarches="*" labels="*" + [[ -n "$other_release" ]] && maas ${maas_profile} boot-source-selections create 1 os="ubuntu" release="${other_release}" arches="amd64" subarches="*" labels="*" # Import the base images; this can take some time echo "Importing boot images, please be patient, this may take some time..."