mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-23 17:34:21 +03:00
virt-install: Drop --import and --nodisks collision
It doesn't work with '--disk none' and it's not very useful anyways
This commit is contained in:
parent
b65a144db1
commit
b85a2a9eb8
@ -685,7 +685,6 @@ c.add_compare("--pxe --print-step all", "simple-pxe") # Diskless PXE install
|
||||
c.add_invalid("--pxe --virt-type bogus") # Bogus virt-type
|
||||
c.add_invalid("--pxe --arch bogus") # Bogus arch
|
||||
c.add_invalid("--paravirt --pxe") # PXE w/ paravirt
|
||||
c.add_invalid("--import") # Import with no disks
|
||||
c.add_invalid("--livecd") # LiveCD with no media
|
||||
c.add_invalid("--pxe --os-variant farrrrrrrge") # Bogus --os-variant
|
||||
c.add_invalid("--pxe --boot menu=foobar")
|
||||
|
@ -540,8 +540,6 @@ def build_installer(options, conn, virt_type):
|
||||
elif virt_type == "exe":
|
||||
instclass = virtinst.ContainerInstaller
|
||||
elif options.import_install or options.boot:
|
||||
if options.import_install and options.nodisks:
|
||||
fail(_("A disk device must be specified with --import."))
|
||||
options.import_install = True
|
||||
instclass = virtinst.ImportInstaller
|
||||
elif options.xmlonly:
|
||||
|
Loading…
Reference in New Issue
Block a user