As already done for _OsMedia, let's store the _OsTree object detected as it'll be used later on in order to improve the installer script and the kernel command line used for (tree based) unattended installations. Signed-off-by: Fabiano Fidêncio <fidencio@xxxxxxxxxx> --- virtinst/install/urldetect.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/virtinst/install/urldetect.py b/virtinst/install/urldetect.py index 7969ad46..d2035fd7 100644 --- a/virtinst/install/urldetect.py +++ b/virtinst/install/urldetect.py @@ -32,6 +32,7 @@ class _DistroCache(object): self.libosinfo_os_variant = None self.libosinfo_mediaobj = None + self.libosinfo_treeobj = None def acquire_file_content(self, path): if path not in self._filecache: @@ -168,7 +169,8 @@ class _DistroCache(object): ret = OSDB.guess_os_by_tree(self._fetcher.location) if not ret: return False - self.libosinfo_os_variant = ret[0] + + self.libosinfo_os_variant, self.libosinfo_treeobj = ret self.treeinfo_matched = True return True -- 2.21.0 _______________________________________________ virt-tools-list mailing list virt-tools-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/virt-tools-list