From 882f61e8eb44ec9f9becc32328667c65f364d066 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Tue, 17 Sep 2013 14:51:02 +0800 Subject: [PATCH] discover/grub2: Populate option ids Signed-off-by: Jeremy Kerr --- discover/grub2/script.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/discover/grub2/script.c b/discover/grub2/script.c index 239ae38..67b4b78 100644 --- a/discover/grub2/script.c +++ b/discover/grub2/script.c @@ -304,6 +304,9 @@ int statement_menuentry_execute(struct grub2_script *script, } else { opt->option->name = talloc_strdup(opt, "(unknown)"); } + opt->option->id = talloc_asprintf(opt->option, "%s#%s", + script->ctx->device->device->id, + opt->option->name); script->opt = opt; -- 2.39.2