FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 02-16-2011, 05:54 PM
David Lehman
 
Default The default kickstart UI is graphical, specify other if you want it (#678095).

On Wed, 2011-02-16 at 13:25 -0500, Chris Lumens wrote:
> This should fix all problems described in the above bug. All the decisions
> about suggesting VNC are handled within anaconda proper.

Ack.

> ---
> loader/kickstart.c | 12 ++++++------
> 1 files changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/loader/kickstart.c b/loader/kickstart.c
> index 6df3040..06804f8 100644
> --- a/loader/kickstart.c
> +++ b/loader/kickstart.c
> @@ -509,7 +509,7 @@ static void setUpdates(struct loaderData_s * loaderData, PyObject *handler) {
>
> static void setDisplayMode(struct loaderData_s * loaderData, PyObject *handler) {
> PyObject *textObj = getObject(constantsMod, "DISPLAY_MODE_TEXT", 0);
> - PyObject *graphicalObj = getObject(constantsMod, "DISPLAY_MODE_GRAPHICAL", 0);
> + PyObject *cmdlineObj = getObject(constantsMod, "DISPLAY_MODE_CMDLINE", 0);
> PyObject *settingObj = getattr(handler, "displaymode", "displayMode");
>
> if (!settingObj)
> @@ -518,17 +518,17 @@ static void setDisplayMode(struct loaderData_s * loaderData, PyObject *handler)
> if (settingObj == textObj) {
> logMessage(INFO, "kickstart forcing text mode");
> flags |= LOADER_FLAGS_TEXT;
> - } else if (settingObj == graphicalObj) {
> - logMessage(INFO, "kickstart forcing graphical mode");
> - flags |= LOADER_FLAGS_GRAPHICAL;
> - } else {
> + } else if (settingObj == cmdlineObj) {
> logMessage(INFO, "kickstart forcing cmdline mode");
> flags |= LOADER_FLAGS_CMDLINE;
> + } else {
> + logMessage(INFO, "kickstart forcing graphical mode");
> + flags |= LOADER_FLAGS_GRAPHICAL;
> }
>
> cleanup:
> Py_XDECREF(textObj);
> - Py_XDECREF(graphicalObj);
> + Py_XDECREF(cmdlineObj);
> Py_XDECREF(settingObj);
> }
>


_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 02-17-2011, 07:03 AM
Ales Kozumplik
 
Default The default kickstart UI is graphical, specify other if you want it (#678095).

On 02/16/2011 07:25 PM, Chris Lumens wrote:

This should fix all problems described in the above bug. All the decisions
if (!settingObj)
@@ -518,17 +518,17 @@ static void setDisplayMode(struct loaderData_s * loaderData, PyObject *handler)
if (settingObj == textObj) {
logMessage(INFO, "kickstart forcing text mode");
flags |= LOADER_FLAGS_TEXT;
- } else if (settingObj == graphicalObj) {
- logMessage(INFO, "kickstart forcing graphical mode");
- flags |= LOADER_FLAGS_GRAPHICAL;
- } else {
+ } else if (settingObj == cmdlineObj) {
logMessage(INFO, "kickstart forcing cmdline mode");
flags |= LOADER_FLAGS_CMDLINE;
+ } else {
+ logMessage(INFO, "kickstart forcing graphical mode");
+ flags |= LOADER_FLAGS_GRAPHICAL;
}


What happens if you specify 'text' on the kernel command line and
nothing in kickstart?


Al_

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 02-18-2011, 05:35 PM
Chris Lumens
 
Default The default kickstart UI is graphical, specify other if you want it (#678095).

> >@@ -518,17 +518,17 @@ static void setDisplayMode(struct loaderData_s * loaderData, PyObject *handler)
> > if (settingObj == textObj) {
> > logMessage(INFO, "kickstart forcing text mode");
> > flags |= LOADER_FLAGS_TEXT;
> >- } else if (settingObj == graphicalObj) {
> >- logMessage(INFO, "kickstart forcing graphical mode");
> >- flags |= LOADER_FLAGS_GRAPHICAL;
> >- } else {
> >+ } else if (settingObj == cmdlineObj) {
> > logMessage(INFO, "kickstart forcing cmdline mode");
> > flags |= LOADER_FLAGS_CMDLINE;
> >+ } else {
> >+ logMessage(INFO, "kickstart forcing graphical mode");
> >+ flags |= LOADER_FLAGS_GRAPHICAL;
> > }
>
> What happens if you specify 'text' on the kernel command line and
> nothing in kickstart?

Looks like you will get graphical. I'll have to think about this for a
bit.

- Chris

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 10:53 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org