stage2param is set in parseCmdLineFlags, but it's not actually used for anything. Take it out. --- loader/loader.c | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/loader/loader.c b/loader/loader.c index 6db3d7c..928a49d 100644 --- a/loader/loader.c +++ b/loader/loader.c @@ -891,7 +891,7 @@ static void parseCmdLineFlags(struct loaderData_s * loaderData, GError *optErr = NULL; int numExtraArgs = 0; int i; - char *front, *stage2param = NULL; + char *front; /* we want to default to graphical and allow override with 'text' */ flags |= LOADER_FLAGS_GRAPHICAL; @@ -1054,10 +1054,8 @@ static void parseCmdLineFlags(struct loaderData_s * loaderData, } else if (!strncasecmp(argv[i], "repo=", 5)) loaderData->instRepo = strdup(argv[i] + 5); - else if (!strncasecmp(argv[i], "stage2=", 7)) { - stage2param = strdup(argv[i]+7); + else if (!strncasecmp(argv[i], "stage2=", 7)) setStage2LocFromCmdline(argv[i] + 7, loaderData); - } else if (!strncasecmp(argv[i], "hostname=", 9)) loaderData->hostname = strdup(argv[i] + 9); else if (!strncasecmp(argv[i], "ip=", 3)) -- 1.6.5.2 _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list