From: Jeremy Kerr Date: Mon, 6 May 2013 03:12:42 +0000 (+0800) Subject: discover/kboot: Fix boot_option initialisation X-Git-Tag: v1.0.0~662 X-Git-Url: https://git.ozlabs.org/?p=petitboot;a=commitdiff_plain;h=b12d51994790ef2896d99f24b0bfb3e20a4f0912;ds=sidebyside 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 --- 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");