Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Fedora User (http://www.linux-archive.org/fedora-user/)
-   -   Make sure "nomodeset" and "xdriver=" get passed on to stage2 (#623129). (http://www.linux-archive.org/fedora-user/411621-make-sure-nomodeset-xdriver-get-passed-stage2-623129-a.html)

Chris Lumens 08-11-2010 09:02 PM

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


All times are GMT. The time now is 07:48 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.