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

Brian C. Lane bcl at redhat.com
Wed Jul 9 00:11:41 UTC 2014


On Thu, Jul 03, 2014 at 04:43:36PM -0400, Chris Lumens wrote:
> 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

novirt_install will also need to be changed so that it doesn't pass
--repo on the cmdline when calling anaconda.


-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)


More information about the anaconda-patches mailing list