+static void init_env(struct grub2_script *script)
+{
+ struct env_entry *env;
+
+ list_init(&script->environment);
+
+ env = talloc(script, struct env_entry);
+ env->name = talloc_strdup(env, "prefix");
+ env->value = talloc_strdup(env, "/");
+
+ list_add(&script->environment, &env->list);
+}
+