summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--discover/platform-powerpc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/discover/platform-powerpc.c b/discover/platform-powerpc.c
index 642c93c..1f6f725 100644
--- a/discover/platform-powerpc.c
+++ b/discover/platform-powerpc.c
@@ -37,6 +37,7 @@ static const char *known_params[] = {
"petitboot,network",
"petitboot,timeout",
"petitboot,bootdev",
+ "petitboot,language",
"petitboot,debug?",
NULL,
};
@@ -423,6 +424,9 @@ static void populate_config(struct platform_powerpc *platform,
}
}
+ val = get_param(platform, "petitboot,language");
+ config->lang = val ? talloc_strdup(config, val) : NULL;
+
populate_network_config(platform, config);
populate_bootdev_config(platform, config);
@@ -555,6 +559,9 @@ static int update_config(struct platform_powerpc *platform,
if (tmp)
talloc_free(tmp);
+ val = config->lang ?: "";
+ update_string_config(platform, "petitboot,language", val);
+
update_network_config(platform, config);
update_bootdev_config(platform, config);
OpenPOWER on IntegriCloud