[virt-tools-list] [virt-manager PATCH] virt-install: report an error for pxe install without network

Pavel Hrdina phrdina at redhat.com
Thu Aug 6 08:49:22 UTC 2015


Fix a regression where we used to report an error message if user
specified pxe installation without any network (--nonetowkrs or
--network none).

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1250382

Signed-off-by: Pavel Hrdina <phrdina at redhat.com>
---
 virt-install | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/virt-install b/virt-install
index 6894654..0e6e750 100755
--- a/virt-install
+++ b/virt-install
@@ -226,6 +226,9 @@ def convert_old_networks(options):
             fail(_("Cannot use --nonetworks with --network"))
         options.network = ["none"]
 
+    if options.pxe and options.network and "none" in options.network:
+        fail(_("Can't use --pxe without any network"))
+
     macs = virtinst.util.listify(options.mac)
     networks = virtinst.util.listify(options.network)
     bridges = virtinst.util.listify(options.bridge)
-- 
2.5.0




More information about the virt-tools-list mailing list