summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-05-06 11:12:42 +0800
committerJeremy Kerr <jk@ozlabs.org>2013-05-06 11:36:54 +0800
commitb12d51994790ef2896d99f24b0bfb3e20a4f0912 (patch)
treefec3d080b399453d9183c056f1c17b85316f8028
parenta8f70e4bb930253065a0596a3b1f4d7894b074a9 (diff)
downloadtalos-petitboot-b12d51994790ef2896d99f24b0bfb3e20a4f0912.tar.gz
talos-petitboot-b12d51994790ef2896d99f24b0bfb3e20a4f0912.zip
discover/kboot: Fix boot_option initialisation
We're not populating d_opt->option, so are returning invalid boot options from the kboot parser. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
-rw-r--r--discover/kboot-parser.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/discover/kboot-parser.c b/discover/kboot-parser.c
index f097674..4064a3e 100644
--- a/discover/kboot-parser.c
+++ b/discover/kboot-parser.c
@@ -45,6 +45,7 @@ static void kboot_process_pair(struct conf_context *conf, const char *name,
opt->id = talloc_asprintf(opt, "%s#%s", conf->dc->device->device->id,
name);
opt->name = talloc_strdup(opt, name);
+ d_opt->option = opt;
args = talloc_strdup(opt, "");
initrd = conf_get_global_option(conf, "initrd");
OpenPOWER on IntegriCloud