From 0eb96add0c36b023e727712f4cbe9c5c61aba98f Mon Sep 17 00:00:00 2001 From: Dimitri John Ledkov Date: Fri, 11 Nov 2022 16:30:14 +0800 Subject: [PATCH] Fix legacy-images path for focal. Bug-Ubuntu: https://launchpad.net/bugs/1872941 Gbp-Pq: Name legacy-images.patch --- virtinst/install/urldetect.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/virtinst/install/urldetect.py b/virtinst/install/urldetect.py index 7969ad46..decdf284 100644 --- a/virtinst/install/urldetect.py +++ b/virtinst/install/urldetect.py @@ -640,6 +640,8 @@ class _DebianDistro(_DistroTree): media_type = None if check_manifest("current/images/MANIFEST"): media_type = "url" + elif check_manifest("current/legacy-images/MANIFEST"): + media_type = "url" elif check_manifest("daily/MANIFEST"): media_type = "daily" elif cache.content_regex(".disk/info", @@ -693,6 +695,9 @@ class _DebianDistro(_DistroTree): def _set_url_paths(self): url_prefix = "current/images" + if self._debname == "ubuntu" and self._os_variant >= 'ubuntu20.04': + url_prefix = "current/legacy-images" + log.warn("Using legacy d-i based installer, that has been deprecated and will be removed in the future. https://discourse.ubuntu.com/c/server") if self.cache.debian_media_type == "daily": url_prefix = "daily" elif self.cache.debian_media_type == "mounted_iso_url":