summaryrefslogtreecommitdiffstats
path: root/discover/yaboot-parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'discover/yaboot-parser.c')
-rw-r--r--discover/yaboot-parser.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/discover/yaboot-parser.c b/discover/yaboot-parser.c
index 41f43eb..eaefbf0 100644
--- a/discover/yaboot-parser.c
+++ b/discover/yaboot-parser.c
@@ -197,11 +197,10 @@ static void yaboot_process_pair(struct conf_context *conf, const char *name,
if (!conf_param_in_list(state->known_names, name))
return;
- state->globals_done = 1;
-
/* image */
-
if (streq(name, "image")) {
+ /* an image section finishes our global defintions */
+ state->globals_done = 1;
/* First finish any previous image. */
if (opt)
OpenPOWER on IntegriCloud