diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2014-01-15 15:10:25 -0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2014-01-30 21:58:24 +0800 |
commit | 2e167ae3eca9b79cf67e04c02b8dbb7b105055a9 (patch) | |
tree | 112b5219dd5de3e123a30dbf2a9aa779295e3b87 /discover/grub2 | |
parent | d6b11766acb4457457419a84f460a3ce7a8f4693 (diff) | |
download | talos-petitboot-2e167ae3eca9b79cf67e04c02b8dbb7b105055a9.tar.gz talos-petitboot-2e167ae3eca9b79cf67e04c02b8dbb7b105055a9.zip |
discover/grub: Add feature variable for --id support.
Since we support --id arguments on menuentries, add the corresponding
feature variable.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'discover/grub2')
-rw-r--r-- | discover/grub2/script.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/discover/grub2/script.c b/discover/grub2/script.c index c4f58d9..642ed2a 100644 --- a/discover/grub2/script.c +++ b/discover/grub2/script.c @@ -435,6 +435,9 @@ static void init_env(struct grub2_script *script) script_env_set(script, "prefix", prefix ? : default_prefix); if (prefix) talloc_free(prefix); + + /* establish feature settings */ + script_env_set(script, "feature_menuentry_id", "y"); } void script_register_function(struct grub2_script *script, |