Allow doing non-URL installs if using virt.

In this case, we don't need to pass a repo parameter to anaconda.  It's running
in a VM and knows how to deal with a kickstart file.
This commit is contained in:
Chris Lumens 2014-07-03 16:41:28 -04:00
parent b4d25e30f0
commit b7be1d97fe
1 changed files with 1 additions and 1 deletions

View File

@ -1093,7 +1093,7 @@ def main():
# Make the disk or filesystem image
if not opts.disk_image and not opts.fs_image:
errors = []
if ks.handler.method.method != "url":
if ks.handler.method.method != "url" and opts.no_virt:
errors.append("Only url install method is currently supported. Please "
"fix your kickstart file." )