From f49ce9e3d852223748a6a98a1407a030ed8f7c8c Mon Sep 17 00:00:00 2001 From: Didier Roche Date: Mon, 12 Feb 2024 10:59:27 +0100 Subject: [PATCH] Ensure ubuntu-wsl image can be published in cloud-images. The publisher for cloud-images.ubuntu.com expects that artefacts finishes with: file_url.endswith(project_prefix + suffix). Now that we integrate app_id to the image name, we need thus to put it before project_prefix and not between project_prefix and suffix. --- live-build/ubuntu-wsl/hooks/99-tar.binary | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/live-build/ubuntu-wsl/hooks/99-tar.binary b/live-build/ubuntu-wsl/hooks/99-tar.binary index 56a39246..1cf50278 100755 --- a/live-build/ubuntu-wsl/hooks/99-tar.binary +++ b/live-build/ubuntu-wsl/hooks/99-tar.binary @@ -84,7 +84,7 @@ create_archive_with_upgrade_policy() { cd chroot sed -i "s#Prompt=.*#Prompt=${upgrade_policy}#" ./etc/update-manager/release-upgrades - tar --xattrs --sort=name -czf ../livecd.ubuntu-wsl.${app_id}.rootfs.tar.gz * + tar --xattrs --sort=name -czf ../livecd.${app_id}.ubuntu-wsl.rootfs.tar.gz * cd .. }