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 Hardened

 
 
LinkBack Thread Tools
 
Old 01-04-2011, 12:53 PM
Radek Vykydal
 
Default Parse all network commands in ks (#638131)

---
loader/kickstart.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/loader/kickstart.c b/loader/kickstart.c
index 007d053..37125ce 100644
--- a/loader/kickstart.c
+++ b/loader/kickstart.c
@@ -546,11 +546,15 @@ static void setMediaCheck(struct loaderData_s * loaderData, int argc,
void runKickstart(struct loaderData_s * loaderData) {
struct ksCommandNames * cmd;
int argc;
- char ** argv;
+ char ** argv = NULL;

logMessage(INFO, "setting up kickstart");
for (cmd = ksTable; cmd->name; cmd++) {
- if ((!ksGetCommand(cmd->code, NULL, &argc, &argv)) && cmd->setupData) {
+ if (!strcmp(cmd->name, "network")) {
+ while ((!ksGetCommand(cmd->code, argv, &argc, &argv)) && cmd->setupData) {
+ cmd->setupData(loaderData, argc, argv);
+ }
+ } else if ((!ksGetCommand(cmd->code, NULL, &argc, &argv)) && cmd->setupData) {
cmd->setupData(loaderData, argc, argv);
}
}
--
1.7.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 01-10-2011, 01:21 PM
Radek Vykydal
 
Default Parse all network commands in ks (#638131)

---
loader/kickstart.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/loader/kickstart.c b/loader/kickstart.c
index 007d053..37125ce 100644
--- a/loader/kickstart.c
+++ b/loader/kickstart.c
@@ -546,11 +546,15 @@ static void setMediaCheck(struct loaderData_s * loaderData, int argc,
void runKickstart(struct loaderData_s * loaderData) {
struct ksCommandNames * cmd;
int argc;
- char ** argv;
+ char ** argv = NULL;

logMessage(INFO, "setting up kickstart");
for (cmd = ksTable; cmd->name; cmd++) {
- if ((!ksGetCommand(cmd->code, NULL, &argc, &argv)) && cmd->setupData) {
+ if (!strcmp(cmd->name, "network")) {
+ while ((!ksGetCommand(cmd->code, argv, &argc, &argv)) && cmd->setupData) {
+ cmd->setupData(loaderData, argc, argv);
+ }
+ } else if ((!ksGetCommand(cmd->code, NULL, &argc, &argv)) && cmd->setupData) {
cmd->setupData(loaderData, argc, argv);
}
}
--
1.7.2

_______________________________________________
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 01:14 PM.

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