summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorMarco Felsch <m.felsch@pengutronix.de>2022-07-04 16:18:09 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2022-07-05 10:19:27 +0200
commit1d09667d3b37628df2902be25a4776ad9867228f (patch)
treee35d1a2b543796429a0adfcffd933f4be0807326 /common
parent9d98b407eda5a1f717872969aadee55a547bdd76 (diff)
downloadbarebox-1d09667d3b37628df2902be25a4776ad9867228f.tar.gz
barebox-1d09667d3b37628df2902be25a4776ad9867228f.tar.xz
common: bootm: print error in case of appendroot failed
Inform the user that appendroot failed instead of silently dropping the request. This makes the debugging easier e.g. if nt-signature wasn't set correctly. Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> Link: https://lore.barebox.org/20220704141809.457135-1-m.felsch@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r--common/bootm.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/common/bootm.c b/common/bootm.c
index 712e6ebe49..39c566e33b 100644
--- a/common/bootm.c
+++ b/common/bootm.c
@@ -725,7 +725,10 @@ int bootm_boot(struct bootm_data *bootm_data)
} else {
rootarg = path_get_linux_rootarg(data->os_file);
}
- if (!IS_ERR(rootarg)) {
+
+ if (IS_ERR(rootarg)) {
+ pr_err("Failed to append kernel cmdline parameter 'root='\n");
+ } else {
pr_info("Adding \"%s\" to Kernel commandline\n", rootarg);
globalvar_add_simple("linux.bootargs.bootm.appendroot",
rootarg);