mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-03-08 04:58:29 +03:00
unattended: Pass the media down to get_install_script()
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
This commit is contained in:
parent
fbcfc2147d
commit
93d3223c87
@ -535,7 +535,7 @@ class _OsVariant(object):
|
||||
_("'%s' does not have a URL location for the %s architecture") %
|
||||
(self.name, arch))
|
||||
|
||||
def get_install_script(self, profile):
|
||||
def get_install_script(self, profile, media=None):
|
||||
def _get_install_script(script_list):
|
||||
if not script_list:
|
||||
raise RuntimeError(
|
||||
|
@ -244,7 +244,7 @@ def prepare_install_script(guest, unattended_data, url=None, media=None):
|
||||
|
||||
return "media"
|
||||
|
||||
rawscript = guest.osinfo.get_install_script(unattended_data.profile)
|
||||
rawscript = guest.osinfo.get_install_script(unattended_data.profile, media)
|
||||
script = OSInstallScript(rawscript, guest.osinfo)
|
||||
|
||||
# For all tree based installations we're going to perform initrd injection
|
||||
|
Loading…
x
Reference in New Issue
Block a user