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 > Gentoo > Gentoo Development

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

This should fix all problems described in the above bug. All the decisions
about suggesting VNC are handled within anaconda proper.
---
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);
}

--
1.7.1.1

_______________________________________________
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 02:48 PM.

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