mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-10-27 01:55:20 +03:00
urlfetcher: Don't mandate boot.iso in treeinfo for Generic distro
Hit this if doing --location /path/to/mounted/RHS.iso https://bugzilla.redhat.com/show_bug.cgi?id=1039456
This commit is contained in:
parent
d38d019aeb
commit
a70077172e
@ -548,10 +548,20 @@ class GenericDistro(Distro):
|
||||
isoSection = "images-%s" % self.treeinfo.get("general", "arch")
|
||||
|
||||
if self.treeinfo.has_section(kernelSection):
|
||||
self._valid_kernel_path = (self._getTreeinfoMedia("kernel"),
|
||||
self._getTreeinfoMedia("initrd"))
|
||||
try:
|
||||
self._valid_kernel_path = (
|
||||
self._getTreeinfoMedia("kernel"),
|
||||
self._getTreeinfoMedia("initrd"))
|
||||
except (ConfigParser.NoSectionError,
|
||||
ConfigParser.NoOptionError), e:
|
||||
logging.debug(e)
|
||||
|
||||
if self.treeinfo.has_section(isoSection):
|
||||
self._valid_iso_path = self.treeinfo.get(isoSection, "boot.iso")
|
||||
try:
|
||||
self._valid_iso_path = self.treeinfo.get(isoSection,
|
||||
"boot.iso")
|
||||
except ConfigParser.NoOptionError, e:
|
||||
logging.debug(e)
|
||||
|
||||
if self.type == "xen":
|
||||
kern_list = self._xen_paths
|
||||
|
Loading…
Reference in New Issue
Block a user