Reorder upgrade
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>
Tue, 25 Mar 2025 15:30:34 +0000 (16:30 +0100)
committerJan-Simon Möller <jsmoeller@linuxfoundation.org>
Tue, 25 Mar 2025 15:30:34 +0000 (16:30 +0100)
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
Change-Id: I127e5b47add3e6feba866f25a9e0e20b6bb6518b

packer/provision/agl_dependencies.sh
packer/templates/basebuild-agl-test-slave.json

index 6a152fd..9ba4849 100644 (file)
@@ -29,6 +29,13 @@ DEBIAN_FRONTEND=noninteractive apt-get --purge remove  plymouth-theme* plymouth
 DEBIAN_FRONTEND=noninteractive apt-get autoremove
 DEBIAN_FRONTEND=noninteractive apt-get apt-get -y -u dist-upgrade
 DEBIAN_FRONTEND=noninteractive dpkg --configure -a
+DEBIAN_FRONTEND=noninteractive apt-get update
+
+# let the upgrade run anyway
+rm -rf /var/run/reboot-requir*
+
+DEBIAN_FRONTEND=noninteractive do-release-upgrade -f DistUpgradeViewNonInteractive --mode=server
+
 
 DEBIAN_FRONTEND=noninteractive apt-get update && \
     apt-get -y install gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat \
@@ -50,9 +57,9 @@ DEBIAN_FRONTEND=noninteractive apt-get clean
 DEBIAN_FRONTEND=noninteractive apt full-upgrade
 
 
-sudo pip3 install --upgrade pip
-sudo pip3 install --upgrade --force-reinstall --ignore-installed pyyaml
-sudo pip3 install --upgrade --ignore-installed --force-reinstall lavacli==1.0
+#sudo pip3 install --upgrade pip
+#sudo pip3 install --upgrade --force-reinstall --ignore-installed pyyaml
+#sudo pip3 install --upgrade --ignore-installed --force-reinstall lavacli==1.0
 
 # we have a build blocker wrt useradd - I assume it is caused by /bin/sh being dash
 # systemd: Performing useradd with
@@ -75,10 +82,7 @@ EOFHOSTS
 # install newer version of jjb ... fixes issues with rendering
 sudo pip install --upgrade --force-reinstall -v jenkins-job-builder
 
-# let the upgrade run anyway
-rm -rf /var/run/reboot-requir*
 
-DEBIAN_FRONTEND=noninteractive do-release-upgrade -f DistUpgradeViewNonInteractive --mode=server
 
 
 cat <<EOFSYSCTL >> /etc/sysctl.conf
index 930d0d5..d37e5d2 100644 (file)
@@ -13,7 +13,7 @@
   "builders": [
     {
       "name": "vexxhost",
-      "image_name": "{{user `distro`}} - basebuild-agl-test-slave - {{isotime \"20060102-1504\"}}",
+      "image_name": "basebuild-agl-test-slave - {{isotime \"20060102-1504\"}}",
       "source_image_name": "{{user `base_image`}}",
       "type": "openstack",
       "identity_endpoint": "https://auth.vexxhost.net/v3/",