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 > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 08-11-2010, 09:02 PM
Chris Lumens
 
Default Make sure "nomodeset" and "xdriver=" get passed on to stage2 (#623129).

---
loader/loader.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/loader/loader.c b/loader/loader.c
index 639c9c9..2a5879a 100644
--- a/loader/loader.c
+++ b/loader/loader.c
@@ -1135,7 +1135,9 @@ static void parseCmdLineFlags(struct loaderData_s * loaderData,
splitProxyParam(v, &loaderData->proxyUser,
&loaderData->proxyPassword, &loaderData->proxy);
}
- } else if (numExtraArgs < (MAX_EXTRA_ARGS - 1)) {
+ }
+
+ if (numExtraArgs < (MAX_EXTRA_ARGS - 1)) {
/* go through and append args we just want to pass on to */
/* the anaconda script, but don't want to represent as a */
/* LOADER_FLAGS_XXX since loader doesn't care about these */
@@ -1154,6 +1156,7 @@ static void parseCmdLineFlags(struct loaderData_s * loaderData,
!strcasecmp(k, "dmraid") ||
!strcasecmp(k, "nodmraid") ||
!strcasecmp(k, "xdriver") ||
+ !strcasecmp(k, "nomodeset") ||
!strcasecmp(k, "syslog")) {

/* vnc implies graphical */
@@ -1176,7 +1179,11 @@ static void parseCmdLineFlags(struct loaderData_s * loaderData,
flags |= LOADER_FLAGS_EARLY_NETWORKING;
}

- checked_asprintf(&extraArgs[numExtraArgs],"--%s", k);
+ if (v != NULL)
+ checked_asprintf(&extraArgs[numExtraArgs], "--%s=%s", k, v)
+ else
+ checked_asprintf(&extraArgs[numExtraArgs],"--%s", k);
+
numExtraArgs += 1;

if (numExtraArgs > (MAX_EXTRA_ARGS - 2)) {
--
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 03:31 AM.

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