summaryrefslogtreecommitdiffstats
path: root/discover
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-09-17 14:51:02 +0800
committerJeremy Kerr <jk@ozlabs.org>2013-09-24 13:14:59 +0800
commit882f61e8eb44ec9f9becc32328667c65f364d066 (patch)
tree6084e4e55ba5bf0eb5b20949c72db5ef1052b246 /discover
parent1a9af828d9ad0da0efa7af286db78c8904344e6b (diff)
downloadtalos-petitboot-882f61e8eb44ec9f9becc32328667c65f364d066.tar.gz
talos-petitboot-882f61e8eb44ec9f9becc32328667c65f364d066.zip
discover/grub2: Populate option ids
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'discover')
-rw-r--r--discover/grub2/script.c3
1 files changed, 3 insertions, 0 deletions
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;
OpenPOWER on IntegriCloud