mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-23 17:34:21 +03:00
installer: extraargs -> extra_args
Better matches what's on the command line
This commit is contained in:
parent
4ae24802d7
commit
e212ce84e6
@ -497,7 +497,7 @@ def build_installer(options, guest):
|
||||
if cdrom and options.livecd:
|
||||
installer.livecd = True
|
||||
if options.extra_args:
|
||||
installer.extraargs = options.extra_args
|
||||
installer.extra_args = options.extra_args
|
||||
if options.initrd_inject:
|
||||
installer.set_initrd_injections(options.initrd_inject)
|
||||
if options.autostart:
|
||||
|
@ -1618,7 +1618,7 @@ class vmmCreate(vmmGObjectUI):
|
||||
# Validate media location
|
||||
try:
|
||||
if extra:
|
||||
installer.extraargs = [extra]
|
||||
installer.extra_args = [extra]
|
||||
if init:
|
||||
self._guest.os.init = init
|
||||
|
||||
|
@ -47,7 +47,7 @@ class Installer(object):
|
||||
self.conn = conn
|
||||
|
||||
self.livecd = False
|
||||
self.extraargs = []
|
||||
self.extra_args = []
|
||||
|
||||
# Entry point for virt-manager 'Customize' wizard to change autostart
|
||||
self.autostart = False
|
||||
@ -141,8 +141,8 @@ class Installer(object):
|
||||
guest.os.kernel = self._install_kernel
|
||||
if self._install_initrd:
|
||||
guest.os.initrd = self._install_initrd
|
||||
if self.extraargs:
|
||||
guest.os.kernel_args = " ".join(self.extraargs)
|
||||
if self.extra_args:
|
||||
guest.os.kernel_args = " ".join(self.extra_args)
|
||||
|
||||
bootdev = self._install_bootdev
|
||||
if bootdev and self._can_set_guest_bootorder(guest):
|
||||
@ -161,7 +161,7 @@ class Installer(object):
|
||||
self._install_kernel = k
|
||||
self._install_initrd = i
|
||||
if a:
|
||||
self.extraargs.append(a)
|
||||
self.extra_args.append(a)
|
||||
|
||||
def _cleanup(self, guest):
|
||||
if self._treemedia:
|
||||
|
Loading…
Reference in New Issue
Block a user