[PATCH] Start spice-vdagent (#969405)

Brian C. Lane bcl at redhat.com
Wed Aug 7 00:16:40 UTC 2013


On Mon, Aug 05, 2013 at 02:45:52PM -0400, David Shea wrote:
> If anaconda is starting an X session, attempt to start the per-session
> half of the spice guest agent.
> ---
>  anaconda | 18 +++++++++++++++++-
>  1 file changed, 17 insertions(+), 1 deletion(-)
> 
> diff --git a/anaconda b/anaconda
> index 6be9fc2..b17f7bd 100755
> --- a/anaconda
> +++ b/anaconda
> @@ -81,6 +81,13 @@ def exitHandler(rebootData, storage, exitCode=None):
>          else: # reboot action is KS_REBOOT or None
>              os.system("systemctl --no-wall reboot")
>  
> +def startSpiceVDAgent():
> +    status = os.system("spice-vdagent")
> +
> +    # An error status usually means that we're not running on a virt guest
> +    if not status:
> +        log.info("spice-vdagent exited with status %d" % status)
> +
>  def startMetacityWM():
>      childpid = os.fork()
>      if not childpid:
> @@ -135,6 +142,14 @@ def set_x_resolution(runres):
>              iutil.execWithRedirect("xrandr",
>                                     ["-d", ":1", "-q"])
>  
> +def doExtraX11Actions(opts):
> +    """Perform X11 actions not related to startup"""
> +
> +    set_x_resolution(opts.runres)
> +
> +    startSpiceVDAgent()
> +    log.info("Started spice-vdagent.")

It may have not started. I'd move this up into an else: inside
startSpiceVDAgent.

-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 482 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/anaconda-patches/attachments/20130806/24f1d3a3/attachment-0001.sig>


More information about the anaconda-patches mailing list