Reorder upgrade
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>
Tue, 25 Mar 2025 10:27:43 +0000 (11:27 +0100)
committerJan-Simon Möller <jsmoeller@linuxfoundation.org>
Tue, 25 Mar 2025 10:27:43 +0000 (11:27 +0100)
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
Change-Id: I09f0f9c114c39e30ebcf146984a4d824dbb692ca

packer/provision/agl_dependencies.sh

index 6c2088e..0ef2150 100644 (file)
@@ -21,12 +21,11 @@ sed -i 's/ubuntu.mirror.vexxhost.com/us.archive.ubuntu.com/g' /etc/apt/sources.l
 
 # UPDATE things
 sed -i -e "s,xenial,focal,g" /etc/apt/sources.list
-
 sync
-
 cat /etc/apt/sources.list
 
 DEBIAN_FRONTEND=noninteractive apt-get update
+DEBIAN_FRONTEND=noninteractive do-release-upgrade -f DistUpgradeViewNonInteractive
 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
@@ -49,7 +48,6 @@ DEBIAN_FRONTEND=noninteractive apt-get clean
 #DEBIAN_FRONTEND=noninteractive apt-get -y install linux-image-4.15.0-123-generic
 DEBIAN_FRONTEND=noninteractive apt full-upgrade
 
-DEBIAN_FRONTEND=noninteractive do-release-upgrade -f DistUpgradeViewNonInteractive
 
 sudo pip3 install --upgrade pip
 sudo pip3 install --upgrade --force-reinstall --ignore-installed pyyaml