mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-11 05:17:59 +03:00
If we use "--boot init=INITPATH" style to set
container's init, virt-install will complain: "ERROR Install methods (--location URL, --cdrom CD/ISO, --pxe, --import, --boot hd|cdrom|...) cannot be specified for container guests" This patch will fix this bug. Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
This commit is contained in:
parent
4ade419002
commit
ad05b19f20
@ -541,13 +541,13 @@ def build_installer(options, conn, virt_type):
|
||||
instclass = virtinst.PXEInstaller
|
||||
elif options.cdrom or options.location:
|
||||
instclass = virtinst.DistroInstaller
|
||||
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 virt_type == "exe":
|
||||
instclass = virtinst.ContainerInstaller
|
||||
else:
|
||||
instclass = virtinst.DistroInstaller
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user