* [PATCH] boot command: Make verbose/dryrun options work again
@ 2016-06-29 7:11 Sascha Hauer
0 siblings, 0 replies; only message in thread
From: Sascha Hauer @ 2016-06-29 7:11 UTC (permalink / raw)
To: Barebox List
Fixes: bc94fb3 bootm: Initialize bootm_data defaults in single place
bootm_data_init_defaults() must be called before filling in the values
from the commandline options, otherwise the values will be overwritten
in bootm_data_init_defaults().
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
commands/boot.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/commands/boot.c b/commands/boot.c
index bd1be4b..c091b2e 100644
--- a/commands/boot.c
+++ b/commands/boot.c
@@ -52,10 +52,13 @@ static int boot_script(char *path)
goto out;
}
- data.verbose = verbose;
- data.dryrun = dryrun;
bootm_data_init_defaults(&data);
+ if (verbose)
+ data.verbose = verbose;
+ if (dryrun)
+ data.dryrun = dryrun;
+
ret = bootm_boot(&data);
if (ret)
pr_err("Booting %s failed: %s\n", basename(path), strerror(-ret));
--
2.8.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-06-29 7:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-29 7:11 [PATCH] boot command: Make verbose/dryrun options work again Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox