Cole Robinson <crobinso@xxxxxxxxxx> writes: >> - def actually_detect(self, media): >> + def actually_detect(self, media, only_local): >> + # First try with libosinfo detection >> + try: >> + os = virtinst.osdict.lookup_os_by_media(media) >> + if os: >> + self.detectedDistro = os >> + return >> + except: >> + pass >> + >> + if only_local: >> + self.detectedDistro = DETECT_FAILED >> + return >> + >> try: >> installer = virtinst.DistroInstaller(self.conn.get_backend()) >> installer.location = media >> > > I think we should try and move this into DistroInstaller, since we will want > to do basically the same thing from virt-install eventually. I've splitted it into two patches and going to submit v2 soon. Thanks, Giuseppe _______________________________________________ virt-tools-list mailing list virt-tools-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/virt-tools-list