mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-03-08 04:58:29 +03:00
osdict: Add get_network_install_resources()
get_network_install_resources() is going to be used when performing a network based installations where more RAM is needed during the installation time than the recommended one, which is the case of some distros as CentOS, RHEL, (some versions of) Silverblue and (some versions of) Fedora. Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
This commit is contained in:
parent
986097d5f8
commit
6c7d765c60
@ -497,6 +497,21 @@ class _OsVariant(object):
|
||||
|
||||
return ret
|
||||
|
||||
def get_network_install_resources(self, guest):
|
||||
ret = {}
|
||||
|
||||
if not self._os:
|
||||
return ret
|
||||
|
||||
resources = self._os.get_network_install_resources()
|
||||
for r in _OsinfoIter(resources):
|
||||
arch = r.get_architecture()
|
||||
if arch == guest.os.arch or arch == "all":
|
||||
ret["ram"] = r.get_ram()
|
||||
break
|
||||
|
||||
return ret
|
||||
|
||||
def get_kernel_url_arg(self):
|
||||
"""
|
||||
Kernel argument name the distro's installer uses to reference
|
||||
|
Loading…
x
Reference in New Issue
Block a user