projects
/
petitboot
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9fbd73a
)
discover/grub2: Add default prefix
author
Jeremy Kerr
<jk@ozlabs.org>
Thu, 26 Sep 2013 09:32:47 +0000
(17:32 +0800)
committer
Jeremy Kerr
<jk@ozlabs.org>
Tue, 1 Oct 2013 04:52:00 +0000
(12:52 +0800)
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
discover/grub2/script.c
patch
|
blob
|
history
diff --git
a/discover/grub2/script.c
b/discover/grub2/script.c
index d0b824aebcb9965e63d2ec0d0cb631da0a2dfc5d..75b8aaaae474fc6348215dea26d7e963f31e4562 100644
(file)
--- a/
discover/grub2/script.c
+++ b/
discover/grub2/script.c
@@
-35,6
+35,8
@@
struct grub2_symtab_entry {
struct list_item list;
};
+static const char *default_prefix = "/boot/grub";
+
static struct grub2_symtab_entry *script_lookup_function(
struct grub2_script *script, const char *name)
{
@@
-401,7
+403,7
@@
static void init_env(struct grub2_script *script)
env = talloc(script, struct env_entry);
env->name = talloc_strdup(env, "prefix");
- env->value = talloc_strdup(env,
"/"
);
+ env->value = talloc_strdup(env,
default_prefix
);
list_add(&script->environment, &env->list);
}