[PATCH - lorax] Allow doing non-URL installs if using virt.

Chris Lumens clumens at redhat.com
Thu Jul 3 20:43:36 UTC 2014


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.
---
 src/sbin/livemedia-creator | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/sbin/livemedia-creator b/src/sbin/livemedia-creator
index 88ca723..f055273 100755
--- a/src/sbin/livemedia-creator
+++ b/src/sbin/livemedia-creator
@@ -1102,7 +1102,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." )
 
-- 
1.9.3



More information about the anaconda-patches mailing list