[PATCH 1/6] Skip VNC prompt if text is requested in kickstart

Brian C. Lane bcl at redhat.com
Fri Sep 28 23:05:19 UTC 2012


On Fri, Sep 28, 2012 at 12:17:42PM -0700, Jesse Keating wrote:
> ---
>  anaconda | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/anaconda b/anaconda
> index 57f7bb8..0e47714 100755
> --- a/anaconda
> +++ b/anaconda
> @@ -405,6 +405,7 @@ def startDebugger(signum, frame):
>  def setupDisplay(anaconda, opts):
>      from pyanaconda.ui.tui.simpleline import App
>      from pyanaconda.ui.tui.spokes.askvnc import AskVNCSpoke
> +    from pykickstart.constants import DISPLAY_MODE_TEXT
>  
>      graphical_failed = 0
>      vncS = vnc.VncServer()          # The vnc Server object.
> @@ -455,6 +456,10 @@ def setupDisplay(anaconda, opts):
>      if iutil.memInstalled() < isys.MIN_GUI_RAM:
>          flags.vncquestion = False
>  
> +    # disable VNC question if we were explicitly asked for text in kickstart
> +    if anaconda.ksdata.displaymode.displayMode == DISPLAY_MODE_TEXT:
> +        flags.vncquestion = False
> +

What about DISPLAY_MODE_CMDLINE? If cmdline is specified it shouldn't
ask either.

-- 
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/20120928/46194f3c/attachment.sig>


More information about the anaconda-patches mailing list