diff options
author | Jeremy Katz <katzj@redhat.com> | 2003-01-02 23:48:11 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2003-01-02 23:48:11 +0000 |
commit | 81d784f2ae0b3b15a8d29de7e27cf202aa97c459 (patch) | |
tree | 4228b390bd9fd762fe8621dd5db3064638c0c0cb /loader2/kickstart.c | |
parent | e3c03163bbde2072acac703cf0f82b512e2c4b2a (diff) | |
download | anaconda-81d784f2ae0b3b15a8d29de7e27cf202aa97c459.tar.gz anaconda-81d784f2ae0b3b15a8d29de7e27cf202aa97c459.tar.xz anaconda-81d784f2ae0b3b15a8d29de7e27cf202aa97c459.zip |
the loader shouldn't care about any of %post, %packages or %pre (fixes #71115)
Diffstat (limited to 'loader2/kickstart.c')
-rw-r--r-- | loader2/kickstart.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/loader2/kickstart.c b/loader2/kickstart.c index 721936b99..443b22ae0 100644 --- a/loader2/kickstart.c +++ b/loader2/kickstart.c @@ -87,7 +87,7 @@ int ksReadCommands(char * cmdFile) { int line = 0; char ** argv; int argc; - int inPackages = 0; + int inSection = 0; /* in a section such as %post, %pre or %packages */ struct ksCommandNames * cmd; int commandsAlloced = 5; @@ -117,7 +117,7 @@ int ksReadCommands(char * cmdFile) { commands = malloc(sizeof(*commands) * commandsAlloced); start = buf; - while (*start && !inPackages) { + while (*start && !inSection) { line++; if (!(end = strchr(start, '\n'))) end = start + strlen(start); @@ -137,8 +137,9 @@ int ksReadCommands(char * cmdFile) { if (!*start || *start == '#') { /* do nothing */ - } else if (!strcmp(start, "%packages")) { - inPackages = 1; + } else if (!strcmp(start, "%packages") || !strcmp(start, "%post") + || !strcmp(start, "%pre")) { + inSection = 1; } else if (*chptr == '\\') { /* JKFIXME: this should be handled better, but at least we * won't segfault now */ |