|
@@ -1384,9 +1384,19 @@ static void fixup_silent_linux(void)
|
|
char *buf;
|
|
char *buf;
|
|
const char *env_val;
|
|
const char *env_val;
|
|
char *cmdline = getenv("bootargs");
|
|
char *cmdline = getenv("bootargs");
|
|
|
|
+ int want_silent;
|
|
|
|
|
|
- /* Only fix cmdline when requested */
|
|
|
|
- if (!(gd->flags & GD_FLG_SILENT))
|
|
|
|
|
|
+ /*
|
|
|
|
+ * Only fix cmdline when requested. The environment variable can be:
|
|
|
|
+ *
|
|
|
|
+ * no - we never fixup
|
|
|
|
+ * yes - we always fixup
|
|
|
|
+ * unset - we rely on the console silent flag
|
|
|
|
+ */
|
|
|
|
+ want_silent = getenv_yesno("silent_linux");
|
|
|
|
+ if (want_silent == 0)
|
|
|
|
+ return;
|
|
|
|
+ else if (want_silent == -1 && !(gd->flags & GD_FLG_SILENT))
|
|
return;
|
|
return;
|
|
|
|
|
|
debug("before silent fix-up: %s\n", cmdline);
|
|
debug("before silent fix-up: %s\n", cmdline);
|